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

An unexpected error occurs (e.g: NoMethodError undefined method `map' for nil:NilClass) When managing Ruby application's gem dependencies with bundler On Artifactory 6.7.0.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.8.0, 6.7.3
    • Component/s: REST API
    • Labels:
      None
    • Sprint:
      Leap 37

      Description

      Description

      An unexpected error occurs (e.g: NoMethodError undefined method `map' for nil:NilClass) When managing Ruby application's gem dependencies with bundler On Artifactory 6.7.0.

       

      Steps to reproduce

      $ bundle install --path ./test/bundle --verbose

      If you need to re-run above command with change of Gemfile as following, you need to delete Gemfile.lock which will be created only in case gems are installed successfully.

      1) When source indicate to gems-local

      Gemfile

      ~~~~~~~ 

      source 'https://rubygems.org/'

      source 'http://127.0.0.1:8081/artifactory/api/gems/gems-local/'

      gem 'sfn'

      ~~~~~~~~

      ==> this will works

      Bundle complete! 1 Gemfile dependency, 39 gems now installed.

      Bundled gems are installed into `./test/bundle`

      You may need to delete Gemfile.lock at this time.

      2) When source indicate to gems-remote

      Gemfile

      ~~~~~~~ 

      source 'https://rubygems.org/'

      source 'http://127.0.0.1:8081/artifactory/api/gems/gems-remote/'

      gem 'sfn'

      ~~~~~~~ 

       ==> This will fail due to remote repo of gems-remote as following errors.

      Retrying dependency api due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (3/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (4/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying fetcher due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Unfortunately, an unexpected error occurred, and Bundler cannot continue.

      3) When source pointing to virtual repo such as gems

      Gemfile

      ~~~~~~~ 

      source 'https://rubygems.org/'

      source 'http://127.0.0.1:8081/artifactory/api/gems/gems/'

      gem 'sfn'

      ~~~~~~~

       ==> This will fail due to remote repo in side of gems virtual repository

      Retrying dependency api due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (3/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (4/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying fetcher due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Unfortunately, an unexpected error occurred, and Bundler cannot continue.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yoazm Yoaz Menda (Inactive)
                Reporter:
                sschmittner Sebastian Schmittner
                Assigned QA:
                Barak Hacham
              • Votes:
                6 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: