Page MenuHomePhabricator

Can't change email in Gerrit (changed in wikitech already)
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Go to https://gerrit.wikimedia.org/r/#/settings/contact. Choose my preferred email from the dropdown menu. Click Save Changes.

Actual Results:

Code Review - Error
realm does not allow editing name

appears.

Expected Results:

The chosen email becomes my preferred email without any error.

Event Timeline

This is totally expected. Gerrit dosen't allow you to do that when the auth type is LDAP.

Please follow @Aklapper suggestion.

Cool! Closing then.

@Aklapper @Paladox : unfortunately, it doesn't work.

Here's a screenshot showing that my email at wikitech is correct. I registered this email since Nov 1, in fact.

Screen Shot 2019-11-26 at 18.55.12.png (342×830 px, 47 KB)

Here's a screenshot showing that my email address field is still blank at gerrit.

Screen Shot 2019-11-26 at 18.55.26.png (502×854 px, 150 KB)

One problem that I have right now is that jenkins-bot does not run when I upload a patch, even though I am on the whitelist. My guess is that it doesn't recognize my email.

Aklapper renamed this task from Can't change email in Gerrit to Can't change email in Gerrit (changed in wikitech already).Nov 27 2019, 11:52 AM

Hi!

One problem that I have right now is that jenkins-bot does not run when I upload a patch, even though I am on the whitelist. My guess is that it doesn't recognize my email.

The CI bot relies on the email address associated with the account in Gerrit. Since your account does not have any email associated, the CI bot just ignore you unfortunately.

The history of the Gerrit account can be found in the repository All-Users.git under reference refs/changes/34/734. The previous email address has been removed on Mon Nov 4 02:27:32 2019 +0000

In the LDAP database, I can definitely see the account and email address (via ldapsearch -x uid=Nullzero), so I assume that part to be valid.


@Nullzero on https://gerrit.wikimedia.org/r/#/settings/contact , you can try Reload which would log you out and force you to login again. That might be enough to have the account reloaded and synchronized.

Else you would have to register the email on that Gerrit contact page. I guess Gerrit LDAP support does not support emails renaming :-(

@hashar I reloaded several times already (and just did it right now). It has no effect.

And yes, I did remove my previous email since I no longer have an access to it.

My issue is resolved. I registered a new email in Gerrit (which could not be the email that I want, since the email that I want is already in the dropdown list. I simply can't change to it). After the registration, somehow I managed to make the system switch to my preferred email. So now it works!

I definitely think that there should be an improvement to either UI to prevent users from getting stuck in this kind of state. And/or fixing the synchronization.

Should I leave this issue open? If not, feel free to close it as resolved.

hashar claimed this task.

I am not entirely sure what happened to be honest :-\ The changes done show the old email has been set as the preferred email (previously there was none), and a few seconds after it got changed to the new email.

Anyway happy to see it got fixed!