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

A RubyGems repository that is marked as offline will respond with a 500 to certain requests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.8.1
    • Fix Version/s: 6.5.0
    • Labels:
      None

      Description

      A RubyGems repository that is marked as offline will respond with a 500 to certain requests. This will make packages inaccessible to bundler requests.

      Notice the call that fails:

      20160617031308|4|REQUEST|192.168.99.1|anonymous|GET|/api/gems/rubygems/api/v1/dependencies|HTTP/1.1|500|0
      

      To reproduce:

      1. Create a remote RubyGems repository
      2. Create a GemFile with a few dependencies, such as this:

      source 'http://192.168.99.100:8081/artifactory/api/gems/rubygems/'
      gem 'nokogiri'
      gem 'rack', '~>1.1'
      gem 'rspec', :require => 'spec'
      

      3. Use bundler to pull the dependencies: bundle install --no-cache
      4. Set the repository as offline
      5. Remove the gem files (rm -rf vendor)
      6. Attempt the bundler pull again, notice failure.

        Attachments

          Activity

            People

            • Assignee:
              Dudim Dudi Morad
              Reporter:
              arturoa Arturo Aparicio
              Assigned QA:
              Barak Hacham
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: