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

invalid POST search requests to PyPI repository returns status code 500 instead of 400

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.5.0
    • Fix Version/s: None
    • Component/s: PyPI
    • Labels:
    • Story Points:
      1

      Description

      When a PyPi repository parsing the POSTed search request and the content is not valid, Nexus returns a 500 response.

      Expected

      • 400 is a more appropriate status code to return if the input is invalid for a post request, return that instead, unless 500 was chosen because of specific client handling requiring 500

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title