eiffel-community / etos

Eiffel Test Orchestration System
https://etos.readthedocs.io
Apache License 2.0
9 stars 6 forks source link

Client should not try to parse the identity if it's a packageurl #165

Closed t-persson closed 1 year ago

t-persson commented 1 year ago

Description

In the event repository it is allowed to query the data.identity using a regex and the ETOS API supports this. However, when running with certain regexes the ETOS Client will scream and shout that it's not a valid package url. For instance: pkg:something/other[?] would fail (because of ?).

Motivation

A common use-case is to use a regex for ETOS, we should allow this.

Exemplification

Example was provided in description.

Benefits

Happy users.

Possible Drawbacks

Allowing regex will make users use regex and regex is a heavy operation in mongodb. We don't really want users to use regex, but there are cases where they must.