Skip to content

Unable to fetch older version artifact metadata using search api #3302

Open
@suryaprabhakark

Description

@suryaprabhakark

Description

Registry
Version
: 2.4.1 & 2.4.2
Persistence type: sql[postgresql]

Environment

Kubernetes deployement and using rest apis.

Steps to Reproduce

  1. Create an artifact A in a group G which will assign a globalId X
  2. Update the artifact A which increments the globalId by 1 X+1
  3. Try to fetch the metadata of the artifact by globalId X+1 as expected
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions