It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
We have a problem with broken user-avatars when we mention users with @username notation on confluence pages.
The image path to the thumbnails is delivered via search.json rest method.
The propertei href for thumbnailLink is '/confluence/download/attachments/1441802/user-avatar' instead of '/download/attachments/1441802/user-avatar'.
Is /confluence/ hardcoded or cached somewhere?
We haven't configured a context path in conf/server.xml and confluence.cfg.xml.
Is it a bug or have we missed something?
Since you identified an issue with an incorrect URL, this article's resolutions may help:
Broken avatars/icons in Confluence after an upgrade due to corrupted cache
Thanks for your reply.
We already tried the three points mentioned on the broken avatar page, unfortunately the problem still exists.
The problem occurs in the editor, during autocomplete for the correct username.
The autocompleter searches for matching users, however the the thumbnailLink.href value is incorret whereas theavatarUrl is correct (see screenshot of json response).
I assume that this is a bug.
Hi,
TL;DR - It worked for me after I cleared every bit of my browser history, passwords, etc. in Chrome
I tried many Confluence versions and cleared my Confluence work directory and reindexed from scratch and cleared my browsing history but the issue persisted. It was frustrating because it worked ok on our internal Production instance and on my colleagues' test instances, but not on any of my test instances. I tried with Firefox and Safari and the elusive avatar did appear! Finally I nuked all my cached Chrome elements and the avatar did appear in Chrome, too.
Here are my before and after pics, both in Chrome:
You can see in the "inspect element" that the src is user-avatar instead of default.png.
I recommend clearing your browser caches completely and trying again.
Thanks,
Ann
Thanks for the reply.
I just tested in a new virtual machine with a fresh installed chrome. The problem still occurs!
The problem is that the search request returns wrong values.
The request goes to:
https://confluence.domain.tld/rest/prototype/1/search.json?max-results=10&query=asdf&search=user&_=1509086566314
And contains a json object with a correct path to an avatar in the property result.lastModifier.AvatarUrl.href: "/download/attachments/1441802/user-avatar"
But the wrong path for the propetry result.thumbnailLink.href: "/confluence/download/attachments/1441802/user-avatar"
The rest service is not cached, so the problem lies in the backend. I haven't found a configuration option for thumbnailLink paths, so it has to be a bug.
Please create a bug request in your ticket system.
Hi - I created a ticket in our support portal so we could have a closer look. The avatars appear as expected during at mentions on our test instances so we would like to examine data and environmental factors on your instance.
The support portal should email you shortly.
The support engineer found a bug and created a report for it, which includes a workaround: Context path changes causes @mention avatar thumbnail to not display
If the context path is updated, the avatar thumbnail image does not display when using an @mention. Testing revealed that this applied to any user whose profile picture was created before the context path change. Problem does not occur for user profile pictures uploaded after the context path change.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.