From 442911ebad8a4b6f69fb9caa2e1f7e44486de166 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 26 Jul 2017 09:25:36 -0400 Subject: [PATCH] rgw: fix the UTF8 check on bucket entry name in rgw_log_op(). Fixes: http://tracker.ceph.com/issues/20779 Signed-off-by: Radoslaw Zarzynski (cherry picked from commit e9a787163080474a1d1a3b8db4db824161326982) --- src/rgw/rgw_log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_log.cc b/src/rgw/rgw_log.cc index 3768fef71ffa1..ccf2b5c65bb29 100644 --- a/src/rgw/rgw_log.cc +++ b/src/rgw/rgw_log.cc @@ -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; } -- 2.39.5