Open
Description
Description
Registry
Version: 2.4.1 & 2.4.2
Persistence type: sql[postgresql]
Environment
Kubernetes deployement and using rest apis.
Steps to Reproduce
- Create an artifact
A
in a groupG
which will assign a globalIdX
- Update the artifact
A
which increments the globalId by 1X+1
- Try to fetch the metadata of the artifact by globalId
X+1
as expected - When I try to fetch metadata of the artifact by previous version globalId
X
then the response is empty.
Problem: Unable to fetch metadata of older versions using search api.
Expected vs Actual Behaviour
Works
curl -X GET http://localhost:8080/apis/registry/v2/search/artifacts\?globalId\=X+1
Not Working
curl -X GET http://localhost:8080/apis/registry/v2/search/artifacts\?globalId\=X
Metadata fetch always works for latest version but not for older version.
Logs
No error logs found