[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


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=>[]},

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.

Comment by Darius Archer [ 03/Nov/14 ]

We're also running into this problem (we are currently at 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 Aug 11 16:57:00 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.