Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7981

The ReST API code throws exceptions that turns into HTTP 500 for things that should be HTTP 400 (Bad Request)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Meridian-2015.1.0, 16.0.4, 17.0.0
    • Fix Version/s: 17.0.0
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      An HTTP 500 should be returned by the web server when a major problem has found while processing a request.

      If the request handler found an invalid argument, a null argument, etc., it should return a proper HTTP response instead of HTTP 500.

      There are several places on the ReST API on which an IllegalArgumentException is thrown. This is not correct and should be fixed.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: