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

Gems dependencies REST API on a local repository runs a partial search on the dependent gems

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: 3.3.0
    • Component/s: RubyGems
    • Labels:
      None

      Description

      When running the gems dependencies query (the query that bundler install uses) through a local gem repository, searching for a package name, the search will output many results of packages starting with the given name.
      For example:

      ruby -ropen-uri -rpp -e 'pp Marshal.load(open("http://localhost:8081/artifactory/api/gems/gem-local/api/v1/dependencies?gems=rack"))'
      [{:name=>"rack-1.5.2.gem", :number=>nil, :platform=>"ruby", :dependencies=>[]},
       {:name=>"rack-matrix_params-0.0.7.gem",
        :number=>nil,
        :platform=>"ruby",
        :dependencies=>[]}]
      

      This query results in both 'rack' and 'rack-matrix_params' packages, while it should actually match results using equals() instead of startsWith() (so rack-matrix_params shouldn't be there). In some cases, this causes an infinite loop from bundler.

        Attachments

          Activity

            People

            • Assignee:
              shayy Shay Yaakov (Inactive)
              Reporter:
              itamarb Itamar Berman-Eshel
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: