Details
-
Bug
-
Resolution: Fixed
-
Medium
-
7.13.0
-
1
-
Severity 3 - Minor
-
0
-
Description
Summary
On Confluence server 6.12.2 requesting wrong REST URL /rest/cql/contenttypes?category=test we will see full stack-trace.
The same we can see at https://confluence.atlassian.com/rest/cql/contenttypes?category=test
On production, a regular user should not see the stack-trace when an error happens.
Steps to Reproduce
- Go to an incorrect REST URL
Expected Results
An error message without stack-trace
Actual Results
An error message with stack-trace
<status>
<status-code>500</status-code>
<message>Unrecognised type category : test</message>
<stack-trace>
com.atlassian.confluence.api.service.exceptions.BadRequestException: Unrecognised type category : test at com.atlassian.confluence.plugins.cql.rest.CQLMetaDataResource.contentTypes(CQLMetaDataResource.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
...