jenkinsci/bitbucket-branch-source-plugin

Avatar icons currently broken

fabiang opened this issue · 4 comments

  • Jenkins version: 2.335
  • Plugin version: 751.vda_24678a_f781
  • Bitbucket server: 7.x

Currently the icon URLs on the dashboard that come from the avatar-cache for this plugins are broken, since they are prepended by a slash (/).

For example the icon URLs look like the following:

<td class="jenkins-table__cell--tight jenkins-table__icon">
    <div class="jenkins-table__cell__button-wrapper">
        <img src="/https://ci.mydomain.local/custom-avatar-cache/ad0d8b1a9a6c35b1c1f140a5713d45be.png?size=32x32" 
             alt="Bitbucket Team/Project"
             tooltip="Bitbucket Team/Project" 
             class="icon-lg">
    </div>
</td>

The problem seems not to be within the method AvatarCache::buildUrl(), as it returns the full-qualified image URL without the slash. Also the Jelly scripts seem ok to me. Jenkins base url is set via configuration to "https://ci.mydomain.local".

What I didn't try:

  • downgrading Jenkins
  • downgrading the plugin
  • checked if other source plugins have the same problem (Gitlab e.g.)

Thanks.

Ok, did some investigations and the problem was introduced upstream with Jenkins 2.335. I guess with jenkinsci/jenkins#6273. Will create a ticket soon and will post the link here for those having the same problem.

I fixed that in 2.336.

Just made the update and problem is gone. Thank you.