When a bucket list is retargeted to an object get, then the object may
not yet have it's bucket set. Ensure the bucket is set on the object.
Fixes: https://tracker.ceph.com/issues/56029
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
(cherry picked from commit
2d4a3ca5c94908a6865dce0192677d8346e1f848)
} else {
s->object->set_name(s->bucket->get_info().website_conf.get_index_doc());
}
+ s->object->set_bucket(s->bucket.get());
auto getop = new RGWGetObj_ObjStore_SWIFT;
getop->set_get_data(boost::algorithm::equals("GET", s->info.method));