Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API POST /search/versions and POST /search/artifacts not finding artifacts in group #4934

Closed
wolfchimneyrock opened this issue Jul 25, 2024 · 1 comment

Comments

@wolfchimneyrock
Copy link
Contributor

wolfchimneyrock commented Jul 25, 2024

Description

Registry
Version
: 3.0.0.M3
Persistence type: sql / postgres

Environment: RHEL8

After creating artifacts with firstVersion (tried json, avro, and protobuf) in a group, which can be subsequently be retrieved from the registry with the GET /groups/.../artifacts/.../versions/.../content endpoint, using POST /search/versions and POST /search/artifacts with the schema content payload returns 0 artifacts / versions.

using linux tool sha256sum I can verify that the content table in the database has the correct contentHash, and in fact if I do request

GET /ids/contentHashes/bea800d700663345de792fc21ec17aa21b799724f6f2c00b1e01979c4f73c8c2

then the correct results are returned (but there is no way to see the version metadata from that query)

also if I create an artifact without a group (i.e. using POST /groups/default/artifacts) then POST /search/artifacts and POST /search/versions returns the expected correct results.

@carlesarnal
Copy link
Member

Hello @wolfchimneyrock,

Are you facing this with the latest release? I'm not able to reproduce this behaviour for it (I know this issue is a bit old) and we have unit tests for this operation, so I'm closing the issue as fixed. If you face it again, please, re-open and I'll take another look.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Registry 3.0 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants