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:
Casey Bodley 2019-08-15 13:13:39 -04:00
parent 97928fb323
commit 2af27be08e

View File

@ -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 {