Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-96521

Confluence returns HTTP 500 after calling getMediaType method for attachment

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: (yes)

      Confluence returns HTTP 500 while calling the below method in the background.

      attachmentType = attachmentObj.getMediaType();
      

      Steps to Reproduce

      We reproduced the issue by using a third-party plugin (Attachment Checker for Confluence) that calls the same backend method while downloading attachments.

      org.hibernate.HibernateException: Unable to resolve owner of loading collection [[com.atlassian.confluence.core.ContentEntityObject.contentProperties#9800219868]] for second level caching
      	at org.hibernate.engine.loading.internal.CollectionLoadContext.addCollectionToCache(CollectionLoadContext.java:360)
      	at org.hibernate.engine.loading.internal.CollectionLoadContext.endLoadingCollection(CollectionLoadContext.java:299)
      	at org.hibernate.engine.loading.internal.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:224)
      	at org.hibernate.engine.loading.internal.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:198)
      

      Expected Results

      The backend method should respond properly as expected.

      Actual Results

      Getting HTTP 500 after calling the getMediaType() for attachments.

      Workaround

      There is no workaround available for this issue.

              854eef6f5746 Kusal Kithul-Godage
              ae95049760ab Kaan Çalışkan (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: