Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-21740

Integrations API - Get Integration by invalid id returns error

XMLWordPrintable

    • False
    • False
    • Unset
    • Undefined

      When sending a GET Integration request with an invalid id:
      https://ci.cloud.redhat.com/api/integrations/v1.0/endpoints/111111

      The response is:
      RESTEASY003870: Unable to extract parameter from http request: javax.ws.rs.PathParam("id") value is

      { 1 }

      for public io.smallrye.mutiny.Uni com.redhat.cloud.notifications.routers.EndpointService.getEndpoint(javax.ws.rs.core.SecurityContext,java.util.UUID)
       
      Expected to return just 404 return error code without body.

       

      Adding this scenario as well:
      When using a valid but non-existing id:

      https://ci.cloud.redhat.com/api/integrations/v1.0/endpoints/75101339-e2b3-4780-9d71-c31a58b12345

      the response body is:
      HTTP 404 Not Found
       

      Expected to return just 404 return error code without body.

            glepage@redhat.com Gwenneg Lepage
            ylahav Yuval Lahav
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: