mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
rgw: RGWSI_User_Module filters '.buckets' objects out of user listing
Fixes: https://tracker.ceph.com/issues/41300 Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
97928fb323
commit
2af27be08e
@ -1,4 +1,4 @@
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include "svc_user.h"
|
||||
#include "svc_user_rados.h"
|
||||
@ -43,7 +43,8 @@ public:
|
||||
}
|
||||
|
||||
bool is_valid_oid(const string& oid) override {
|
||||
return true;
|
||||
// filter out the user.buckets objects
|
||||
return !boost::algorithm::ends_with(oid, RGW_BUCKETS_OBJ_SUFFIX);
|
||||
}
|
||||
|
||||
string key_to_oid(const string& key) override {
|
||||
|
Loading…
Reference in New Issue
Block a user