The username part of an email is case sensitive, so it would
be bad for Gerrit to enforce that. However, ideally you
would be able to enforce that yourself via an upload_change
hook. Shawn cleared the way to create such hooks for Gerrit
at this year's gittogether, so a patch to do this (add an
upload deny ability) will gladly be accepted.
> This seems like it could be a simple change for gerrit to
> ignore case. Any chance it getting changed for 2.2.2?
> Also, when is 2.2.2 going to be released?
This would not likely to make it for 2.2.2 which will
effectively be a stable release, but no reason it couldn't
make it to 2.2.3,
-Martin
--
Employee of Qualcomm Innovation Center, Inc. which is a
member of Code Aurora Forum
Uh, no, because I was obviously confused. :)
I was thinking that you could use the hook to reject changes
with emails that you didn't like (we do that), but since you
want the opposite, I don't think a hook would work, sorry.
-Martin
> On Nov 16, 4:31 pm, dpreilan <dreil...@gmail.com> wrote:
> > What would/could the upload change hook do? modify the
> > commit? Note, I already need a post-upload hook to
> > trigger builds. I am guessing nobody is interested in
> > that patch.
> >
> > In my case, all the ldap email entries are lower case,
> > but have folks with different cases in .gitconfig or
> > just typing in different cases at repo init time.
> > I was toying with the adding 'option' to repo init to
> > take resulting email (however) it got it, and convert
> > to lower case and writing out. There is no way to
> > query gerrit (as normal user) as to what email address
> > for my account/key is, correct?
> >
> > Doug
--
They can look at the Settings page under Contact Information, or
Identities. Any of those email addresses listed is accepted by Gerrit.
Under Contact Information users can add other email addresses by
having Gerrit send them an email with an activation link that verifies
the email reaches the user.
Note that this issue has been discussed here [1] too.
[1] http://code.google.com/p/gerrit/issues/detail?id=900
Martin did I read you correctly when you say the the username part of
the email address is case sensitive ?
It seems odd to me. I can send emails to myself even if I changed the
case of my username in the address...
Or maybe the exchange server I use at work corrects the case ?
Yes, the username is case sensitive.
> It seems odd to me. I can send emails to myself even if I changed the
> case of my username in the address...
> Or maybe the exchange server I use at work corrects the case ?
Some servers accept the username with any case, yes. The RFCs just
state that a program sending mail (like Gerrit) must assume
X...@example.com and x...@example.com are different addresses, just like
X+...@example.com and X...@example.com are different addresses. The fact
that some mail servers may route everything to X's inbox is a policy
decision of @example.com's mail configuration and is not something
that a mail sender may assume.