View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008252 | mantisbt | feature | public | 2007-08-10 14:02 | 2007-10-04 01:38 |
Reporter | DGtlRift | Assigned To | giallu | ||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.0a4 | ||||
Fixed in Version | 1.1.0rc1 | ||||
Summary | 0008252: Gravatars and case sensitivity of email addresses | ||||
Description | When I set up a gravatar account, it changed any uppercase chars in my email domain to lowercase. In my mantis account, my email address has those domain chars as uppercase, so when it computes the md5sum it will not match the record of the gravatar. | ||||
Steps To Reproduce | Change email address in mantis to use an uppercase char | ||||
Additional Information | As a work around, and trying to figure out what was going on, I changed my email address to lowercase in mantis and that seemed to fix the problem. Today, however, I can't seem to get it to work. Is there a test page on the gravatar site for generating the URL from an email? | ||||
Tags | No tags attached. | ||||
The question is:
|
|
the point is, email is not case sensitive, so USER@example.com is the same as user@example.com. So I guess they are really converting the emails to lowercase. I will do the same before calculating the md5 in mantis so we can see how it behave |
|
Traditional domain names are not case-sensitive, but mailbox names might be. (IDN domain names with non-ASCII characters are another story.) The Wikipedia [1] quotes RFC 2821 [2] which states that the local part of the email address (the part before the "@" sign) "MUST BE treated as case sensitive. [...] However, exploiting the case sensitivity of mailbox local-parts impedes interoperability and is discouraged." This suggests that a) Gravatar should not be altering the case of the local part of email addresses, and b) it is not possible for Mantis or any other system to divine whether or not a remote email system's local parts are case-sensitive or not. However, as long as Gravatar has this bug, lowercasing the address will probably be the only way for Mantis to keep up. |
|
Sorry, I just noticed the original report does indeed only mention chars in the domain name, which is, per RFC, case-insensitive. And I see that the change in revision 1.111 of user_api.php of Mantis is that the entire email address is lowercased. We should only be lowercasing the domain name part. |
|
I am all for following the standards, but you also have to take into account how those are actually implemented. mailbox names "might be" case sensitive, but in practice I never saw a server/service applying that. Try for example sending a mail to my gmail account, using any conbination of upper/lower case: GIALLU, Giallu GIAllu are all delivered to my maildir. I verified Gravatar is lowercaseing the mailbox part, so the fix as it stands is correct. |
|
So. is there anything left to see here? |
|
Nope. :) |
|
MantisBT: master a478eb91 2007-08-10 18:17 Details Diff |
Fix 8252: Gravatars and case sensitivity of email addresses git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4539 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0008252 |
|
mod - core/user_api.php | Diff File |