Root cause
- the REST API JAX-RS application does not register the generic exception handler that handles all exceptions
Reproduction
What are the steps to reproduce your problem?
1. Use docker image of camunda tomcat distribution 7.10.7-ee to install the camunda platform
2. Cause an exception in a process - e.g. a field is not there - causing a NullPointerException. Sample bpmn file is attached for details.
What is the problem?
The Rest-API returns an HTML instead of a JSON. See Attachment.
What would be the expected behavior:
According to documentation it should return a JSON object. -see https://docs.camunda.org/manual/7.10/reference/rest/overview/#error-handling
Attached is the bpmn diagram and rest api screenshot for more details.
This is the controller panel for Smart Panels app
- is related to
-
CAM-10597 Errors should have consistent JSON response body
- Closed