Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-34599

Status API execution via Nexus Swagger UI returns Undocumented Error: OK

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.40.0, 3.41.0
    • Fix Version/s: None
    • Component/s: REST, UI
    • Notability:
      4

      Description

      Swagger based API execution for the "/service/rest/v1/status" API returns "Undocumented Error: OK" response, while the same API responds with "200 OK" response when invoked using other clients like curl.

      Example:

      # curl -v -X 'GET' 'http://localhost:8081/service/rest/v1/status' -H 'accept: application/json'
      Note: Unnecessary use of -X or --request, GET is already inferred.
      *   Trying 127.0.0.1:8081...
      * TCP_NODELAY set
      * Connected to localhost (127.0.0.1) port 8081 (#0)
      > GET /service/rest/v1/status HTTP/1.1
      > Host: localhost:8081
      > User-Agent: curl/7.68.0
      > accept: application/json
      > 
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 200 OK
      < Date: Tue, 09 Aug 2022 00:50:49 GMT
      < Server: Nexus/3.41.0-01 (PRO)
      < X-Content-Type-Options: nosniff
      < Content-Length: 0
      < 
      * Connection #0 to host localhost left intact
      

      Now perform the same Status API execution via Nexus UI --> System --> API, the response will be unexpected.

      See the attached screenshot "swagger_API-response.png"

      Expectation:

      • Users should get the same response for the status check API irrespective of the way they are invoked.
      • A Successful response should return "200 OK" instead of "Undocumented Error: OK"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jsensharma Jay Kumar SenSharma
              Last Updated By:
              Michael Oliverio Michael Oliverio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  tigCommentSecurity.panel-title