]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix the UTF8 check on bucket entry name in rgw_log_op().
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Jul 2017 13:25:36 +0000 (09:25 -0400)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Jul 2017 13:27:45 +0000 (09:27 -0400)
Fixes: http://tracker.ceph.com/issues/20779
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/rgw/rgw_log.cc

index 5f7b14d4bec3d9a113894b3dd127c006a50dccb4..7bceab0aa689636031a1eef3f075fad869116a91 100644 (file)
@@ -327,7 +327,7 @@ int rgw_log_op(RGWRados *store, RGWREST* const rest, struct req_state *s,
   }
   rgw_make_bucket_entry_name(s->bucket_tenant, s->bucket_name, entry.bucket);
 
-  if (check_utf8(s->bucket_name.c_str(), entry.bucket.size()) != 0) {
+  if (check_utf8(entry.bucket.c_str(), entry.bucket.size()) != 0) {
     ldout(s->cct, 5) << "not logging op on bucket with non-utf8 name" << dendl;
     return 0;
   }