You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if artifactType parameter is set before canonical=true, then the expected result returns.
if canonical parameter is set before artifactType, then status 400 is returned with message When setting 'canonical' to 'true', the 'artifactType' query parameter is also required
if artifactId parameter is set before groupId parameter, then the expected versions are returned.
if groupId parameter is set before artifactId parameter, then all versions in the group are returned (instead of ones matching both the group and artifact)
Logs
no interesting log output
The text was updated successfully, but these errors were encountered:
query parameters when searching for versions seems to matter, and different results are returned depending on their order.
Description
Registry
Version: 3.0.0.M3
Persistence type: sql / postgresql
Steps to Reproduce
canonical vs artifactType order:
curl -X POST --data @payload.json http://localhost:8080/apis/registry/v3/search/versions?canonical=true&artifactType=JSON
groupId vs artifactId order
curl http://localhost:8080/apis/registry/v3/search/versions?groupId=foo&artifactId=bar
Expected vs Actual Behaviour
if artifactType parameter is set before canonical=true, then the expected result returns.
if canonical parameter is set before artifactType, then status 400 is returned with message
When setting 'canonical' to 'true', the 'artifactType' query parameter is also required
if artifactId parameter is set before groupId parameter, then the expected versions are returned.
if groupId parameter is set before artifactId parameter, then all versions in the group are returned (instead of ones matching both the group and artifact)
Logs
no interesting log output
The text was updated successfully, but these errors were encountered: