Forums

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

Image URLs in Jira ticket preview window are broken in Bitbucket Server

David Eisner May 18, 2018

We're running Bitbucket Server v5.10.0 and JIRA v7.9.1 on Windows Server, both reverse proxied behind NGINX. Let's say my server is at https://dev.acme.org/.  So Bitbucket is proxied at https://dev.acme.org/bitbucket/, and JIRA is at https://dev.acme.org/jira/.

I have configured application links in both directions between Bitbucket and JIRA. It seems to work correctly (except for the problem described next). Both show the application link status as "CONNECTED" (green).

Suppose I mention a JIRA bug (like TNT-107) in a commit message. Then in Bitbucket the "TNT-107" will be hyperlinked, and if I click it, a "Jira Issues" preview window pops up showing the issue name, details, and description. The problem is that if the description includes an image, the image is broken -- I just see the browser's broken image icon.

After doing some investigation, I see that the image URL used in the JIRA preview window is incorrect. It will be something like:

https://dev.acme.org/jira/jira/secure/attachment/10803/10803_image-2018-05-18-15-18-31-545.png

when it should be 

https://dev.acme.org/jira/secure/attachment/10803/10803_image-2018-05-18-15-18-31-545.png

Note the extra "/jira" at the beginning of the path in the first URL.

In the JIRA application link settings inside the Bitbucket settings, both the Application URL and the Display URL are set to "https://dev.acme.org/jira". Just to see what would happen, I changed the Display URL to be just https://dev.acme.org. That fixed the image in the Description section of the JIRA bug, but it broke all of the other images in the Jira Issues preview window (user avatar, status icon, project avatar, etc.)

As a workaround we can just open the bug in JIRA, but I'd like to get this working. Any thoughts? Thanks.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events