Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-76433

500 error when getting storage value for content REST API

XMLWordPrintable

      Issue Summary

       
      The following APIs retrieve the same body.storage.value from the same Confluence page.

      1. https://<instance_name>.atlassian.net/wiki/rest/api/content?spaceKey=Space_Key&start=X&limit=X&type=page&expand=body.storage.value
      2. https://<instance_name>.net/wiki/rest/api/content?spaceKey=Space_Key&id=Page_ID&type=page&expand=body.storage.value

       
      API 1 throws the error

       

      { "statusCode": 500, "data": \{ "authorized": true, "valid": true, "errors": [], "successful": true }
      ,
      "message": "com.atlassian.confluence.api.service.exceptions.InternalServerException: java.lang.ClassCastException: class java.lang.String cannot be cast to class com.atlassian.confluence.xhtml.api.Link (java.lang.String is in module java.base of loader 'bootstrap'; com.atlassian.confluence.xhtml.api.Link is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @11ebb1b6)"
      }
      

       

      While API 2 is successful.

       

      Steps to Reproduce

      See the Summary

      Expected Results

      See the Summary

      Actual Results

      See the Summary

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              b2e61339283b Ben Keene
              56d8610cd0f7 Carmine Comparone (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: