Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-257

The notification service returns HTTP 500 for unmatching"sort" param

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • v1.0.13
    • None
    • parodos-backend
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • FLPATH 1

      The use of unmatching value of "sort" param when GET /api/v1/notifications endpoint leads to HTTP 500 instead of 400.

      $ curl -X 'GET'  -u dev:dev 'http://localhost:8081/api/v1/notifications?page=0&size=1&sort=FOOBAR' -H 'accept: /
      {{{}}
        "timestamp" : "2023-03-29T08:52:30.385+00:00",
        "status" : 500,
        "error" : "Internal Server Error",
        "path" : "/api/v1/notifications"
      }

            rh-ee-nargaman Nir Argaman
            mlibra@redhat.com Marek Libra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: