Hi,
Executing the a + "
CQL query, which is obviously invalid, results in the following error message:
wiki/rest/api/search?cql=a+%2B+%22&limit=10
{
"statusCode": 400,
"data": {
"authorized": true,
"valid": true,
"errors": [],
"successful": true
},
"message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: Could not parse cql : "
}
Similarly, the CQL query type=abc
results in a weird error message recommending some values for type
that are seemingly internal to Confluence (using those in the query works if I use quotes, but I’m really not sure if they are supposed to be used):
wiki/rest/api/search?cql=type=abc
{
"statusCode": 400,
"data": {
"authorized": true,
"valid": true,
"errors": [],
"successful": true
},
"message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: Unsupported value for type, got : abc, expected one of : [space, user, page, blogpost, comment, attachment, com.atlassian.confluence.extra.team-calendars:calendar-content-type, com.atlassian.confluence.extra.team-calendars:space-calendars-view-content-type, ac:com.addonengine.analytics:space-analytics]"
}
Can these error messages be updated to be more useful?
Thanks,
Gabor