Skip to content

Commit

Permalink
Merge pull request #9018: rgw: add AWS4 completion support for RGW_OP…
Browse files Browse the repository at this point in the history
…_SET_BUCKET_WEBSITE

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed May 10, 2016
2 parents 4ec09c9 + 1d28aac commit 1152c28
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 1152c28

Please sign in to comment.