]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add AWS4 completion support for RGW_OP_SET_BUCKET_WEBSITE 8788/head
authorJavier M. Mellid <jmunhoz@igalia.com>
Wed, 27 Apr 2016 18:28:08 +0000 (20:28 +0200)
committerJavier M. Mellid <jmunhoz@igalia.com>
Wed, 27 Apr 2016 18:28:08 +0000 (20:28 +0200)
Fixes: http://tracker.ceph.com/issues/15626
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
src/rgw/rgw_rest_s3.cc

index abf15f4e64a8d065b3f8754461a3ed8d196d15c5..b36c16ac1dc5e6a39288cf9ed691603b92f24d19 100644 (file)
@@ -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);
 
@@ -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;