Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.10.3, 5.10.4
    • Fix Version/s: None
    • Component/s: Bower, PyPI
    • Labels:
      None

      Description

      Since a number of remote repository types are starting to get 'Registry URL's in addition to the normal 'remote URLs', there should be similar test button, as placing an incorrect registry URL will result in resolution failure, but there is no indication of this in the logs or UI; until resolution is actually attempted. e.g. having http://pypi.org instead of https://pypi.org:

      root@1d60cfa5830d:/usr/local/lib/python2.7/dist-packages# pip install aboutdir
      Collecting aboutdir
      Exception:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
          status = self.run(options, args)
        File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
          wb.build(autobuilding=True)
        File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
          self.requirement_set.prepare_files(self.finder)
        File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
          ignore_dependencies=self.ignore_dependencies))
        File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
          require_hashes
        File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
          self.link = finder.find_requirement(self, upgrade)
        File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
          all_candidates = self.find_all_candidates(req.name)
        File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
          for page in self._get_pages(url_locations, project_name):
        File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
          page = self._get_page(location)
        File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
          return HTMLPage.get_page(link, session=self.session)
        File "/usr/lib/python2.7/dist-packages/pip/index.py", line 795, in get_page
          resp.raise_for_status()
        File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/models.py", line 893, in raise_for_status
          raise HTTPError(http_error_msg, response=self)
      HTTPError: 404 Client Error: Not Found for url: http://<ART_URL>/artifactory/api/pypi/pypi-remote-source/simple/aboutdir/
      

      Has no mention of the registry URL being incorrect.
      Request log:
      20180507182731|20|REQUEST|104.196.245.50|anonymous|GET|/api/pypi/pypi-remote-source/simple/aboutdir/|HTTP/1.1|404|0

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              loreny Loren Yeung
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: