]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix the UTF8 check on bucket entry name in rgw_log_op(). 17279/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Jul 2017 13:25:36 +0000 (09:25 -0400)
committerNathan Cutler <ncutler@suse.com>
Sun, 27 Aug 2017 10:14:07 +0000 (12:14 +0200)
Fixes: http://tracker.ceph.com/issues/20779
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit e9a787163080474a1d1a3b8db4db824161326982)

src/rgw/rgw_log.cc

index 3768fef71ffa16d9113ac0c07e85d757855fb893..ccf2b5c65bb292a19ed74e8b2db26f5728527028 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;
   }