Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-21395

PyPI redirections does not honor X-JFrog-Override-Base-Url header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.3.0
    • Component/s: PyPI
    • Labels:
    • Severity:
      Critical

      Description

      Some PyPI requests that should come with a slash in the end, like the main index /simple/, repect the spec of redirecting in cases of the same REST resource is tried to be accessed without the slash suffix.
      Those PyPI redirections should honor the X-JFrog-Override-Base-Url precedence over the existing X-Artifactory-Override-Base-Url.

      How to reproduce:

      have a cloud instance with pypi repository.

      do a curl to the api/pypi/pypi-local/simple -> this should redirect you to /simple/

      observe that you are being redirected to http://.../simple/ and then to https://.../simple/. you shouldn't pass in the http, but straight to the https

        Attachments

          Activity

              People

              Assignee:
              nadavy Nadav Yogev
              Reporter:
              nadavy Nadav Yogev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-21395 -
                  SYNCHRONIZED
                  • Last Sync Date: