]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/radosgw-admin clarify error when email address already in use 39661/head
authorMatthew Vernon <mv3@sanger.ac.uk>
Thu, 4 Feb 2021 11:41:14 +0000 (11:41 +0000)
committerPonnuvel Palaniyappan <ponnuvel.palaniyappan@canonical.com>
Wed, 24 Feb 2021 10:51:01 +0000 (10:51 +0000)
commit5015c7cde064ca5737288e3225ff98cba69ab100
tree863f62a34a886b654a880ef6dd75a4c67b1d6f1f
parent997f1b84b3e74ed23746d3632bf2b9f0e3f93951
rgw/radosgw-admin clarify error when email address already in use

The error message if you try and create an S3 user with an email
address that is already associated with another S3 account is very
confusing; this patch makes it much clearer

To reproduce:

radosgw-admin user create --uid=foo --display-name="Foo test" --email=bar@domain.invalid
radosgw-admin user create --uid=test --display-name="AN test" --email=bar@domain.invalid
could not create user: unable to parse parameters, user id mismatch, operation id: foo does not match: test

With this patch:

radosgw-admin user create --uid=test --display-name="AN test" --email=bar@domain.invalid
could not create user: unable to create user test because user id foo already exists with email bar@domain.invalid

Fixes: https://tracker.ceph.com/issues/49137
Fixes: https://tracker.ceph.com/issues/19411
Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
(cherry picked from commit 05318d6f71e45a42a46518a0ef17047dfab83990)
src/rgw/rgw_user.cc