From: Matt Benjamin Date: Mon, 18 Jan 2016 20:06:19 +0000 (-0500) Subject: rgw-admin: convert user email addresses to lower case X-Git-Tag: v10.2.3~61^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=962e7dc47dcaa64f4774a197ae21d0ee59f7854f;p=ceph.git rgw-admin: convert user email addresses to lower case Fixes the email address inconsistency documented in upstream Ceph BUG #13598 Signed-off-by: Matt Benjamin (cherry picked from commit 4c438dbbc0e6eda6b9a3018d60019a1a780d6f65) --- diff --git a/src/rgw/rgw_user.h b/src/rgw/rgw_user.h index 6335fb6f2ff2..c17e54b9715a 100644 --- a/src/rgw/rgw_user.h +++ b/src/rgw/rgw_user.h @@ -5,6 +5,8 @@ #define CEPH_RGW_USER_H #include +#include +#include "include/assert.h" #include "include/types.h" #include "rgw_common.h" @@ -244,6 +246,8 @@ struct RGWUserAdminOpState { if (email.empty()) return; + /* always lowercase email address */ + boost::algorithm::to_lower(email); user_email = email; user_email_specified = true; }