dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Improve PURL Component Search

Open msymons opened this issue 3 years ago • 0 comments
trafficstars

Current Behavior:

I have components that look like this:

pkg:maven/foo.bar.cat/[email protected]?type=jar
pkg:maven/foo.bar.cat/[email protected]?type=jar
pkg:maven/foo.bar.cats/[email protected]?type=jar

It is not possible to search for cat without also getting hits on cats (that I do not want). The following search would be ideal (because it would exclude cats) but it does not work (returns 0 hits):

pkg:maven/foo.bar.cat/

Tweaking the search (just one character extra) works just fine... but excludes pkg:maven/foo.bar.cat/[email protected]?type=jar

pkg:maven/foo.bar.cat/x

Proposed Behavior:

Allow for PURL component search that can be truncated to the 2nd "/" character.

pkg:maven/foo.bar.cat/

This enhancement centres around PURL search because I would think that is easiest to fix. But, ideally, it would also useful to be more specific in (default) "coordinates" search by supporting specification of start and end of string. eg

^foo.bar.cat
foo.bar.cat$
^foo.bar.cat$

(something for a separate enhancement issue?)

msymons avatar Jul 24 '22 21:07 msymons