-
Bug
-
Resolution: Fixed
-
Low (View bug fix roadmap)
-
5.1
-
None
-
5.01
-
2
-
Gravatar implementation in com.atlassian.jira.avatar.AvatarServiceImpl.GravatarUrlStrategy doesn't convert email address to lower case.
According to http://en.gravatar.com/site/implement/hash/ it should have been lowercased.
Haven't tested it but this patch should fix it.
--- AvatarServiceImpl.java Thu Jul 5 03:30:04 2012 +++ AvatarServiceImpl2.java Wed Jul 11 18:42:44 2012 @@ -370,7 +370,7 @@ if (user != null && user.getEmailAddress() != null) { String email = user.getEmailAddress(); - String hash = MD5Util.md5Hex(email); + String hash = MD5Util.md5Hex(email.toLowerCase()); URI jiraBaseUrl = URI.create(velocityRequestContextFactory.getJiraVelocityRequestContext().getCanonicalBaseUrl()); String gravatarBaseUrl;
- is duplicated by
-
JRASERVER-28989 Gravatar is broken for users with mixed case emails
-
- Closed
-
- mentioned in
-
Wiki Page Failed to load
Form Name |
---|
Hi All,
I am seeing this issue 8.16.1 - the strange thing is I am sure this was working ok before the upgrade from V7.
Our company standard is Firstname.Lastname@company.com
and we are not able to update the directory... so we need the email to be set to lowercase when sending hash to gravatar
EDIT - did some more testing and the gravatars work as expected with local users, however when directory users have mixed case email gravatar does not work... I can put exactly the same email address on a local user and the gravatar works..