Skip to:
If an exception is thrown within a ReST endpoint (e.g. GraphMLRestService) the general "OpenNMS Error Page (jsp)" is returned.
This is weird, as the caller expects a json or xml response, but gets a jsp (as text).
A proper "ExceptionProvider" should be implemented to map any exception to some error object.
How to reproduce:Simply send
The response looks like:
PR: https://github.com/OpenNMS/opennms/pull/1584
If an exception is thrown within a ReST endpoint (e.g. GraphMLRestService) the general "OpenNMS Error Page (jsp)" is returned.
This is weird, as the caller expects a json or xml response, but gets a jsp (as text).
A proper "ExceptionProvider" should be implemented to map any exception to some error object.
How to reproduce:
Simply send
The response looks like: