-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw:user email can modify to empty #6094
Conversation
@dwj192 please ignore the bot failure, it is a false negative due to http://tracker.ceph.com/issues/13176 |
@dwj192 can you open a ceph tracker issue for that and note it in the commit message? Thanks |
104fd3c
to
9ce62a1
Compare
@yehudasa done! Thanks |
9ce62a1
to
215929a
Compare
@yehudasa |
Fixes: ceph#13286 Signed-off-by: Weijun Duan <duanweijun@h3c.com>
215929a
to
ead55eb
Compare
@yehudasa had delete email info in pool .users.email after set email to "" |
@yehudasa my test // add email for user // look .users.email pool exist email info // modify user other info, user stile,email info still exist // rm email info, email is empty // look .users.email pool email is not exist |
rebase please |
@dwj192 , your patch doesn't compile on master, can you update it? |
|
||
rgw_obj email_obj(store->zone.user_email_pool, user_info.user_email); | ||
ldout(store->ctx(), 10) << "removing email index: " << user_info.user_email << dendl; | ||
ret = store->delete_system_obj(email_obj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to call rgw_remove_email_index()
instead
user email can be empty in default
but can't modify to empty when it has value
now it can modify to empty when need
Signed-off-by: Weijun Duan duanweijun@h3c.com