Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 467830

Summary: can NOT push to simrel.build with Gerrit
Product: Community Reporter: Christian Campo <christian.campo>
Component: GerritAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy, mikael.barbero
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Christian Campo CLA 2015-05-21 05:57:29 EDT
I am having problems to push to simrel.build repo using Gerrit.

The error I am getting is this.
Push: Not all refs have been pushed.
	'master' rejected (non-fast-forward)
	remote: Resolving deltas:  50% (1/2)   
	remote: Resolving deltas: 100% (2/2)   
	remote: Resolving deltas: 100% (2/2)
	remote: 
	remote: Processing changes: refs: 1
	remote: Processing changes: refs: 1, done    
	remote: 
	remote: ERROR:  In commit d6fa92c6bc9401839413511ea95f0d91df559371
	remote: ERROR:  committer email address christian.campo@compeople.de
	remote: ERROR:  does not match your user account.
	remote: ERROR:
	remote: ERROR:  The following addresses are currently registered:
	remote: ERROR:    Christian.Campo@compeople.de
	remote: ERROR:
	remote: ERROR:  To register an email address, please visit:
	remote: ERROR:  https://git.eclipse.org/r/#/settings/contact
	remote: 
	remote: 
	error: failed to push some refs to 'ssh://ccampo@git.eclipse.org:29418/simrel/org.eclipse.simrel.build.git'

So my committer id for any commit in Riena or other projects is christian.campo@compeople.de. (all lowercase). I tried to register a new address in the Gerrit web interface.

I get a confirmation email with this link.
https://git.eclipse.org/r/#/VE/QIRlT1GW3iK0YEOzd0sta0MvQZomghWrkMRKeg==$MzA1NzQ6Y2hyaXN0aWFuLmNhbXBvQGNvbXBlb3BsZS5kZQ==

This link however leads to an internal server error (invalid token). I tried like 5 times always get the email with the same link that always doesnt work.

Please help.
Comment 1 Mikaël Barbero CLA 2015-05-21 06:13:32 EDT
(In reply to Christian Campo from comment #0)
> I am having problems to push to simrel.build repo using Gerrit.
> 
> The error I am getting is this.
> Push: Not all refs have been pushed.
> 	'master' rejected (non-fast-forward)
> 	remote: Resolving deltas:  50% (1/2)   
> 	remote: Resolving deltas: 100% (2/2)   
> 	remote: Resolving deltas: 100% (2/2)
> 	remote: 
> 	remote: Processing changes: refs: 1
> 	remote: Processing changes: refs: 1, done    
> 	remote: 
> 	remote: ERROR:  In commit d6fa92c6bc9401839413511ea95f0d91df559371
> 	remote: ERROR:  committer email address christian.campo@compeople.de
> 	remote: ERROR:  does not match your user account.
> 	remote: ERROR:
> 	remote: ERROR:  The following addresses are currently registered:
> 	remote: ERROR:    Christian.Campo@compeople.de
> 	remote: ERROR:
> 	remote: ERROR:  To register an email address, please visit:
> 	remote: ERROR:  https://git.eclipse.org/r/#/settings/contact
> 	remote: 
> 	remote: 
> 	error: failed to push some refs to
> 'ssh://ccampo@git.eclipse.org:29418/simrel/org.eclipse.simrel.build.git'
> 
> So my committer id for any commit in Riena or other projects is
> christian.campo@compeople.de. (all lowercase). I tried to register a new
> address in the Gerrit web interface.

Christian.Campo@compeople.de was the email registered in the foundation database. I changed it for christian.campo@compeople.de. Let's see if it helps.

> 
> I get a confirmation email with this link.
> https://git.eclipse.org/r/#/VE/
> QIRlT1GW3iK0YEOzd0sta0MvQZomghWrkMRKeg==$MzA1NzQ6Y2hyaXN0aWFuLmNhbXBvQGNvbXBl
> b3BsZS5kZQ==
> 
> This link however leads to an internal server error (invalid token). I tried
> like 5 times always get the email with the same link that always doesnt work.
> 
> Please help.

I think we forbid to register new email via gerrit because it would lead to inconsistencies with the ldap.
Comment 2 Christian Campo CLA 2015-05-21 06:31:52 EDT
I tried it 5 seconds ago and receive the same error message

Push: Not all refs have been pushed.
	'master' rejected (non-fast-forward)
	remote: Resolving deltas:  50% (1/2)   
	remote: Resolving deltas: 100% (2/2)   
	remote: Resolving deltas: 100% (2/2)
	remote: 
	remote: Processing changes: refs: 1
	remote: Processing changes: refs: 1, done    
	remote: 
	remote: ERROR:  In commit 10e9a37b81a9f7ffb5818c41dc828241d27228a1
	remote: ERROR:  committer email address christian.campo@compeople.de
	remote: ERROR:  does not match your user account.
	remote: ERROR:
	remote: ERROR:  The following addresses are currently registered:
	remote: ERROR:    Christian.Campo@compeople.de
	remote: ERROR:
	remote: ERROR:  To register an email address, please visit:
	remote: ERROR:  https://git.eclipse.org/r/#/settings/contact
	remote: 
	remote: 
	error: failed to push some refs to 'ssh://ccampo@git.eclipse.org:29418/simrel/org.eclipse.simrel.build.git'
Comment 3 Christian Campo CLA 2015-05-21 08:22:01 EDT
Still I cannot push to the simrel.build gerrit link.

I also still see Christian.Campo@compeople.de in that error message and The Gerrit contact address at https://git.eclipse.org/r/#/settings/contact

also shows the email address with Capital letters. Who can help me ?
Comment 4 Mikaël Barbero CLA 2015-05-21 08:26:38 EDT
I changed your email to be all lower case in the LDAP. Would you give it another try?
Comment 5 Christian Campo CLA 2015-05-21 08:30:18 EDT
Thanks

that change did the trick. I see the correct email address in the Gerrit settings and my push to Gerrit went through....

thanks for helping
Comment 6 Denis Roy CLA 2015-05-21 09:37:38 EDT
FWIW:

https://groups.google.com/forum/#!topic/repo-discuss/hVRXe0oUXfI

https://code.google.com/p/gerrit/issues/detail?id=900

tldr; The email RFC states that email addresses are case sensitive, and that is what Gerrit is doing.
Comment 7 Christian Campo CLA 2015-05-21 10:11:09 EDT
(In reply to Denis Roy from comment #6)
> FWIW:
> 
> https://groups.google.com/forum/#!topic/repo-discuss/hVRXe0oUXfI
> 
> https://code.google.com/p/gerrit/issues/detail?id=900
> 
> tldr; The email RFC states that email addresses are case sensitive, and that
> is what Gerrit is doing.

Maybe. However some Email gateways handle them as if they are the same. So sending to Christian.Campo@compeople.de would reach me and christian.campo@compeople.de would reach me too.....

So Gerrit is maybe more according to the RFC.