Images Preview Are Broken in Pages or Attachments List Generates a System Error For All or Some Users

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

  • Attaching an image file by drag and drop or uploading it manually works initially, however upon further page refreshes and clearing the browser cache will break the preview of the image. 

OR 

  • User A attaches an attachment file to a page.  User B is not able to to view the attachment and receives a 500 error, similar to below.  User A continues to be able to view the attachment without issue regardless of refreshes or browsers.

OR

  • Additionally when going to the attachments list of this page and clicking on some of the files produces the following error:
Cause
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:695)
Stack Trace:[hide]
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:695)
	at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
	at com.sun.proxy.$Proxy12.commit(Unknown Source)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
	at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.getStreamInTransaction(ServeAfterTransactionDownload.java:41)
	at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:51)

Referer URL

http://Confluence_base_url/pages/viewpageattachments.action?pageId=XXXXXXX&metadataLink=true

Cause

It was discovered that this issue was caused by the Tracking Access Plugin.

Resolution

Disable or remove the Tracking Access Plugin if installed.

Last modified on Feb 23, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.