Confluence returns HTTP 500 after calling getMediaType method for attachment

XMLWordPrintable

    • 3
    • Severity 2 - Major
    • 24

      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.

            Assignee:
            Kusal Kithul-Godage
            Reporter:
            Kaan Çalışkan (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: