-
Bug
-
Resolution: Fixed
-
Medium
-
6.1.0, 6.1.2, 6.3.4, 6.4.0, 6.9.0
-
47
-
Severity 3 - Minor
-
30
-
Summary
Confluence attachment is rendered as a broken link when viewed in JIRA Activity Stream gadget from JIRA and Activity Stream gadget from Confluence.
Environment
- Confluence 6.1.0, 6.1.2
- JIRA 7.3.3, 7.3.5
Steps to Reproduce
- Set up application links between JIRA and Confluence
- Add attachment in an existing Confluence page
- See JIRA Activity Stream gadget from JIRA Dashboard
Expected Results
The attachment is rendered correctly
Actual Results
- The attachment is rendered as a broken link
- Opening the attachment in a new tab will result in a System Error page with below error:
Cause java.lang.NullPointerException at com.atlassian.confluence.servlet.download.AttachmentDownload.getStreamForDownload(AttachmentDownload.java:105) Stack Trace:[hide] java.lang.NullPointerException at com.atlassian.confluence.servlet.download.AttachmentDownload.getStreamForDownload(AttachmentDownload.java:105) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:110) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.getStreamInTransaction(ServeAfterTransactionDownload.java:36) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:42)
Notes
- JIRA Activity Stream gadget can render the attachment correctly when JIRA 7.3.3 is integrated with Confluence 5.10.5
- The same URL is used for linking the attachment when integrated with Confluence 5.10.5 and 6.1.0, for example http://10.60.2.82:8090//download/attachments
Workaround
Open the attachment link in a new tab and remove one of the 2 forward slashes between the Base URL and download/attachments. E.g. from:
to
- is incorporated by
-
JRASERVER-65090 subsequent Confluence images not showing correctly in JIRA activity stream
-
- Gathering Impact
-
Well, it still remains for confluence 7.0.3 with a very specific case.
When someone shares the confluence page to others at least 2 people, then the gadget mentions the page is shared with the other person. However, the profile photo path of the person has two slashes such as https://example.com//download/attachments/5472359/user-avatar and cannot see the photo, logging the errors.