when object is uploaded via chunked encoding.
fixes: https://tracker.ceph.com/issues/49797
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit
f1407efb903bbb264a68ed962086194feaed0b44)
if (token.acct_type == TYPE_KEYSTONE || token.acct_type == TYPE_LDAP) {
auto apl = remote_apl_factory->create_apl_remote(cct, s, get_acl_strategy(),
get_creds_info(token));
- return result_t::grant(std::move(apl), completer_factory(boost::none));
+ return result_t::grant(std::move(apl), completer_factory(token.secret_access_key));
} else if (token.acct_type == TYPE_ROLE) {
t_attrs.user_id = std::move(token.user); // This is mostly needed to assign the owner of a bucket during its creation
t_attrs.token_policy = std::move(token.policy);