[RTFACT-6625] Gems dependencies REST API on a local repository runs a partial search on the dependent gems Created: 02/Jul/14  Updated: 14/Nov/17  Resolved: 13/Jul/14

Status: Resolved
Project: Artifactory Binary Repository
Component/s: RubyGems
Affects Version/s: 3.2.2
Fix Version/s: 3.3.0

Type: Bug Priority: Normal
Reporter: Itamar Berman-Eshel Assignee: Shay Yaakov (Inactive)
Resolution: Fixed Votes: 0
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.



 Comments   
Comment by Darius Archer [ 03/Nov/14 ]

We're also running into this problem (we are currently at 3.2.1.1). Any idea when it will be addressed?

Comment by Darius Archer [ 04/Nov/14 ]

Whoops, misread the page, sorry. So this is in fact fixed as of 3.3.0?

Comment by Shay Yaakov (Inactive) [ 04/Nov/14 ]

Yes, you should not encounter this problem anymore if you are running 3.3.0+

Generated at Tue Jan 21 15:37:56 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.