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

Artifactory ignores "X-Artifactory-Override-Base-Url" header with PyPi

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: 5.4.6
    • Fix Version/s: None
    • Component/s: PyPI
    • Labels:
      None

      Description

      When adding -H "X-Artifactory-Override-Base-Url: <Base-Url>" it seems like, Artifactory ignores it with PyPi and does not override the Base Url.

      Steps to reproduce:
      1. Create a remote PyPi repo(for example pypi-remote)
      2. run the command below:
      $ curl -v "http://localhost:8081/artifactory/api/pypi/pypi-remote/simple/15five-django-ajax-selects" -uadmin:password -H "X-Artifactory-Override-Base-Url: http://localhost:8081/"

      You can tell from the output, that Artifactory, ignored the header that I've added :

      _* Trying ::1...

      • TCP_NODELAY set
      • Connected to localhost (::1) port 8081 (#0)
      • Server auth using Basic with user 'admin'
        > GET /artifactory/api/pypi/pypi-remote/simple/15five-django-ajax-selects HTTP/1.1
        > Host: localhost:8081
        > Authorization: Basic YWRtaW46cGFzc3dvcmQ=
        > User-Agent: curl/7.51.0
        > Accept: /
        > X-Artifactory-Override-Base-Url: http://localhost:8081/
        >
        < HTTP/1.1 301 Moved Permanently
        < Server: Artifactory/5.3.0
        < X-Artifactory-Id: f9634930f9711c08:-69f2d8c1:15e80d315a2:-8000
        < Location: http://localhost:8081/artifactory/api/pypi/pypi-remote/simple/15five-django-ajax-selects/
        < Content-Type: text/html
        < Content-Length: 0
        < Date: Thu, 14 Sep 2017 16:44:55 GMT
        <
      • Curl_http_done: called premature == 0
      • Connection #0 to host localhost left intact_

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mohammadt Mohammad Tibi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: