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

Python registry is not supported for virtual repository - fails on authentication

    Details

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

      Description

      When you are using local repository, configure in the pypirc the user without a password and running

      python setup.py sdist register -r local upload -r local
      

      This will prompt for a password, Artifactory will send 204 on the anonymous user and python will send the password that is entered:

      running register
      Password: 
      Registering fdspy.tester to http://192.168.56.1:9090/artifactory/api/pypi/pypi-virtual
      Server response (200): OK
      running upload
      Submitting dist/fdspy.tester-0.4.tar.gz to http://192.168.56.1:9090/artifactory/api/pypi/pypi-virtual
      Server response (200): OK
      

      Upon configuring the upload to virtual repository, this procedure fails:
      Configure the pypirc to point to a virtual repository, the user without a password, run the same command:

      running register
      Password: 
      Registering fdspy.tester to http://192.168.56.1:9090/artifactory/api/pypi/pypi-virtual
      Server response (400): Bad Request
      running upload
      Submitting dist/fdspy.tester-0.4.tar.gz to http://192.168.56.1:9090/artifactory/api/pypi/pypi-virtual
      Upload failed (401): Unauthorized
      

        Attachments

          Activity

            People

            • Assignee:
              alexeiv Alexei Vainshtein
              Reporter:
              alexeiv Alexei Vainshtein
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: