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

expire proxy cache does not force fetching a new specs file from the remote

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.1
    • Fix Version/s: 2.11.3
    • Component/s: RubyGems
    • Labels:
      None
    • Sprint:
      Sprint 37

      Description

      Create a hosted rubygems repo
      Create a proxy of this hosted repo
      Deploy a gem to the hosted repo
      gem sources -c on the client to clear caches
      Fetch the specs file from the proxy, ie. via search

      > gem search -V -a bundler
      
      *** REMOTE GEMS ***
      
      GET http://localhost:8081/nexus/content/repositories/proxyruby/specs.4.8.gz
      200 OK
      

      = no results

      but if you hit the hosted as well, the new gem is found, proving the gem specs file was updated:

      > gem search --source http://localhost:8081/nexus/content/repositories/hostedruby -V -a bundler
      
      *** REMOTE GEMS ***
      
      GET http://localhost:8081/nexus/content/repositories/proxyruby/specs.4.8.gz
      200 OK
      GET http://localhost:8081/nexus/content/repositories/hostedruby/specs.4.8.gz
      200 OK
      bundler (1.6.3)
      

      Expected: proxy should get the updated specs file on cache expiration and report deployed gem as available.

        Attachments

          Activity

            People

            Assignee:
            jtom Joe Tom
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title