]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Admin - Pass user to created bucket 47678/head
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 18 Aug 2022 16:30:04 +0000 (12:30 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Thu, 18 Aug 2022 16:30:04 +0000 (12:30 -0400)
The user was not being passed to the created bucket.  This means that,
in some operations, radosgw-admin was crashing trying to de-reference
the user.

Fixes: https://tracker.ceph.com/issues/56810
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_admin.cc

index 77bbc3b15dd5ea64c8a9c3bd67690984b8f8082e..01e00c8267e66af60f5d8358560f0978f26ce523 100644 (file)
@@ -1195,7 +1195,7 @@ public:
 static int init_bucket(rgw::sal::User* user, const rgw_bucket& b,
                        std::unique_ptr<rgw::sal::Bucket>* bucket)
 {
-  return store->get_bucket(dpp(), nullptr, b, bucket, null_yield);
+  return store->get_bucket(dpp(), user, b, bucket, null_yield);
 }
 
 static int init_bucket(rgw::sal::User* user,