-
Bug
-
Resolution: Fixed
-
Low
-
2
-
Severity 3 - Minor
-
Issue Summary
The following APIs retrieve the same body.storage.value from the same Confluence page.
- https://<instance_name>.atlassian.net/wiki/rest/api/content?spaceKey=Space_Key&start=X&limit=X&type=page&expand=body.storage.value
- 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