ReST endpoints do not handle exceptions correctly

Description

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:

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Markus von Rüden July 3, 2017 at 8:17 AM

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

PagerDuty

Created June 30, 2017 at 8:06 AM
Updated June 3, 2019 at 7:08 AM
Resolved July 5, 2017 at 8:56 AM