-
Bug
-
Resolution: Fixed
-
Low
-
None
-
6
-
Severity 3 - Minor
-
Summary
Trying to create an issue using the new rest/api/3/issue endpoint returns the below error:
{ "errorMessages": [ "We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file." ], "errors": {} }
Environment
This bug affects only some cloud instances.
Steps to Reproduce
- Send a POST request to the rest/api/3/issue/ endpoint using below request body (replace XXX with the actual project key):
{ "fields":{ "project":{ "key":"XXX" }, "summary":"TEST PLEASE DISREGARD", "issuetype":{ "name":"Bug" }, "priority":{ "name":"Medium" }, "description":{ "type":"doc", "version":1, "content":[ { "type":"paragraph", "content":[ { "type":"text", "text":"description" }, { "type":"text", "text":"SOME DESCRIPTION HERE" } ] } ] } } }
Expected Results
An issue is created successfully.
Actual Results
The request actually returns 400 bad request error with following message for some cloud instances:
{ "errorMessages": [ "We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file." ], "errors": {} }
In Jira logs the below exception is found:
2018-11-23 12:14:22.714 ERROR com.atlassian.jira.bc.issue.DefaultIssueService.privacy-safe Error creating issue: com.atlassian.jira.util.text.RichTextPreStoreException: pre-store call failed: Errors: {} Error Messages: [{"message":"Document field document JSON doesn't comply with Atlassian Document Format Full","meta":{"errors":[{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"error":": type should be object","path":""}]},"status":400}] com.atlassian.jira.exception.CreateException: com.atlassian.jira.util.text.RichTextPreStoreException: pre-store call failed: Errors: {} Error Messages: [{"message":"Document field document JSON doesn't comply with Atlassian Document Format Full","meta":{"errors":[{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"error":": type should be object","path":""}]},"status":400}] ... ... 388 more Caused by: com.atlassian.jira.util.text.RichTextPreStoreException: pre-store call failed: Errors: {} Error Messages: [{"message":"Document field document JSON doesn't comply with Atlassian Document Format Full","meta":{"errors":[{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"error":": type should be object","path":""}]},"status":400}] ... 2018-11-23 12:14:22.713 WARN com.atlassian.jira.adf.impl.request.handlers.PreStoreEndpointHandler.privacy-safe Error returned from Fabric Content Services. Status: [ FABRIC_SERVICE_ERROR ] Message [ {"message":"Document field document JSON doesn't comply with Atlassian Document Format Full","meta":{"errors":[{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"error":": type should be object","path":""}]},"status":400} ]
Workaround
Since the v3 endpoint is still beta and we advise to use the v2 endpoint for the time being
- is related to
-
JRACLOUD-75909 API v3 explicit error for ADF
- Closed
- duplicates
-
EX-551 Loading...
- relates to
-
EX-674 Loading...