Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
RGWPutACLs_ObjStore() {}
~RGWPutACLs_ObjStore() {}
- int get_params();
+ virtual int get_params();
};
class RGWGetCORS_ObjStore : public RGWGetCORS {
s->cio->write(acls.c_str(), acls.size());
}
+int RGWPutACLs_ObjStore_S3::get_params()
+{
+ int ret = RGWPutACLs_ObjStore::get_params();
+ if (ret < 0)
+ s->aws4_auth_needs_complete = false;
+ if (s->aws4_auth_needs_complete) {
+ int ret_auth = do_aws4_auth_completion();
+ if (ret_auth)
+ return ret_auth;
+ }
+ return ret;
+}
+
int RGWPutACLs_ObjStore_S3::get_policy_from_state(RGWRados *store, struct req_state *s, stringstream& ss)
{
RGWAccessControlPolicy_S3 s3policy(s->cct);
int get_policy_from_state(RGWRados *store, struct req_state *s, stringstream& ss);
void send_response();
+ int get_params();
};
class RGWGetCORS_ObjStore_S3 : public RGWGetCORS_ObjStore {