Skip to content

Commit

Permalink
rgw: add AWS4 completion support for RGW_OP_SET_BUCKET_WEBSITE
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/15626

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
  • Loading branch information
jmunhoz committed Apr 27, 2016
1 parent cafe882 commit 0537335
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rgw/rgw_rest_s3.cc
Expand Up @@ -761,6 +761,13 @@ int RGWSetBucketWebsite_ObjStore_S3::get_params()
return r;
}

if (s->aws4_auth_needs_complete) {
int ret_auth = do_aws4_auth_completion();
if (ret_auth < 0) {
return ret_auth;
}
}

bufferlist bl;
bl.append(data, len);

Expand Down Expand Up @@ -3576,6 +3583,7 @@ int RGW_Auth_S3::authorize_v4(RGWRados *store, struct req_state *s)
case RGW_OP_SET_BUCKET_VERSIONING:
case RGW_OP_DELETE_MULTI_OBJ:
case RGW_OP_ADMIN_SET_METADATA:
case RGW_OP_SET_BUCKET_WEBSITE:
break;
default:
dout(10) << "ERROR: AWS4 completion for this operation NOT IMPLEMENTED" << dendl;
Expand Down

0 comments on commit 0537335

Please sign in to comment.