search.json returns illegal URL path for property thumnailLink.href

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?

3 answers

0 votes
Ann Worley Atlassian Team Oct 25, 2017

I am not sure what the expected behavior is for the at-mentions. On the Confluence instances I am used to, there is no thumbnail of an avatar when a user is at mentioned.

Please attach a screen shot of the broken avatars to help meunderstand. At mentions on my test instance look like:Screen Shot 2017-10-25 at 12.20.01 PM.png



Ann Worley Atlassian Team Oct 25, 2017

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).search-json.png


I assume that this is a bug.

0 votes
Ann Worley Atlassian Team Oct 26, 2017


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:

Screen Shot 2017-10-26 at 11.33.05 AM.pngScreen Shot 2017-10-26 at 11.55.41 AM.pngYou 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 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:


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.

Ann Worley Atlassian Team Oct 30, 2017

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.

0 votes
Ann Worley Atlassian Team Nov 07, 2017

The support engineer found a bug and created a report for it, which includes a workaroundContext 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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

212 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you