Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

'Unassigned' avatar missing in Jira Server.

Mikolaj Toczek May 11, 2018

Hi,

 

For some reason, when an issue in my Jira server instance is 'unassigned', instead of displaying the regular avatar of the unassigned 'user' it shows this :

temp.jpg

What I've noticed so far is that the request for the avatar is missing its ID in parameters, that's probably why it's not finding it (404) :

temp.jpg

Any idea why that might be? We were importing some avatars from and old instance into ours when setting it up, so the files / records in 'avatar' table were definitely modified, but I'm not sure how to narrow down the cause of  (only) this particular avatar missing.

 

Jira Server version 7.6.2.

1 answer

0 votes
joshloe
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 11, 2018

Mikolaj,

Since you were importing avatars, can you do the following:

 Run this query against your database:

SELECT id, filename FROM avatar;

Check that the filenames in your avatars directory <jira-home>/data/avatars/ match the reported filenames. The Filenames will have the format:  ID_[size]_FILENAME.

In some cases you may notice an extension: '*jrvtg.png' This is an indication that the avatar files have been upgraded from an older version of JIRA. 

Resolution

  1. Move or copy the images in <jira-home>/data/avatars/ from the old JIRA application instance to the new one.
  2. Ensure the Avatars directory file names match those in the database if upgrading from a version of JIRA before 6.1.7

Source: Custom Avatars Missing after a JIRA application gets upgraded or migrated

 

Hopefully this at least sets you on the right path  Mikolaj,

 

-Josh Loe

Mikolaj Toczek May 14, 2018

Hi Josh,

I have the correct record corresponding to the unassigned avatar in the database, but no matching file in <jira-home>/data/avatars/ 

HOWEVER I also checked my TEST instance, which is running the same Jira version but is not experiencing the problem with the missing 'unassigned' avatar, and there is no file like "*Avatar-unknown.png*" or anything like that in there either (i tried searching by ID and parts of the filename with wildcards and it is definitely not there). After running a quick search I found that the 'Avatar-unknown.png', 'small_Avatar-unknown.png' etc. files (not prefixed with the ID from the database) can be found in <jira-install>/atlassian-jira/WEB-INF/classes/avatars/

Are you sure the file with the 'unassigned' avatar should be in <jira-home>/data/avatars/ ? If that is the case then I am ever more confused as to why I am not experiencing the issue on my TEST instance..

Chris Nelson October 11, 2018

While fixing them all is an admirable goal, the only problem I am having is with the Unassigned avatar and there are 205 lines in the `avatar` table.  I'd like to know which one is for Unassigned so I can fix just that file.  Does `Unassigned` have an ID?  How can I find it?

Suggest an answer

Log in or Sign up to answer