Details
-
Bug
-
Resolution: Unresolved
-
Low
-
Minor
-
Description
Issue Summary
The contentbody convert API (/wiki/rest/api/contentbody/convert/{to}) returns successful response codes when the conversion results in an error.
Steps to Reproduce
- Invoke the API as follows:
- To format: view
- From format: storage
- From content: <p>a href="https://foo.com">bar</a></p>
- Observe the response.
Expected Results
The returned JSON includes a field identifying the conversion was unsuccessful.
Actual Results
The response code is 200 and the returned JSON does not include any field identifying the conversion was unsuccessful. The only indication is the error message in the field that is used to return the converted content.
Workaround
None