Details
-
Bug
-
Resolution: Answered
-
Low
-
4.0.3
-
None
-
Severity 3 - Minor
-
Description
Just found a FishEye/Crucible instance where avatar URL was set with excessive space in front in Admin / Avatars / url. Rather than 'http://gravatar.com/avatar/' it was set to ' http://gravatar.com/avatar/' (notice space at the front).
Avatars were shown correct in the product, but were broken in Development Panel in JIRA.
Errors in FishEye logs:
2016-04-28 07:40:03,133 ERROR [qtp1305564302-3938 ] com.atlassian.sal.fisheye.user.FisheyeUserProfile - Error getting Avatar URI for user 'pswiecicki' java.net.URISyntaxException: Illegal character in scheme name at index 0: http://gravatar.com/avatar/6bb79caa69a2a1f4386911cb1507c233?s=24&d=mm at java.net.URI$Parser.fail(URI.java:2848) at java.net.URI$Parser.checkChars(URI.java:3021) at java.net.URI$Parser.checkChar(URI.java:3031) at java.net.URI$Parser.parse(URI.java:3047) at java.net.URI.<init>(URI.java:588) at com.atlassian.sal.fisheye.user.FisheyeUserProfile.getProfilePictureUri(FisheyeUserProfile.java:53)
Fixing URL helped, ideally the product would trim excessive spaces automatically.