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

configurability of response code for proxy repo config errors

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.22.0
    • Fix Version/s: None
    • Component/s: Proxy Repository
    • Labels:
      None

      Description

      There is a known difference in the response codes one may receive depending on if the original request was made to a group repo or proxy repo.

      Reproduce

      1. Create a proxy repo pointing at an https remote where NXRM does not trust the remote cert.
      2. Make a request directly at the proxy repo URL for an artifact that does exist in the remote - the NXRM response is 502 error code to requesting client to indicate a server problem (PKIX).
      3. Invalidate cache of proxy repo.
      4. Make the same artifact request to a group repository containing proxy repo as a member. The NXRM request will return 404, instead of 502.

      Use Case

      A gradle build can be configured with multiple source repositories.

      If gradle receives a 502 status code from a request it makes, then the build fails instead of trying the rest of its configured sources.

      It may not be desirable to configure gradle with a group repo URL. It may not be desirable to be forced to create a NXRM group repository containing a single proxy repo, just to alter the response code in such circumstances.

      Expected

      Provide some level of configurability in NXRM to report 404 not found responses ( or other non-fatal status similar to group responses ) for internal NXRM errors that would otherwise return 5xx status codes that could fail builds.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title