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
The SearchLogQuery endpoint (/api/v1/log/entries/retrieve) is documented in openapi.yaml to return a JSON array with 0 or more resulting entries that match the search criteria. There is 0 mention of returning a 404 from this endpoint.
If an request is searching for two entries (one that exists and one that doesn't), the server currently returns a 404 instead of just returning the one entry that actually exists in the log.
2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1355 exists but 2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1345 doesn't:
bcallaway@bcallaway01:~/git/sigstore/rekor$ curl -i -XPOST --data-binary '{"entryUUIDs":["2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1355","2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1345"]}' -H "Content-Type: application/json" http://localhost:3000/api/v1/log/entries/retrieve
HTTP/1.1 404 Not Found
Content-Type: application/json
Vary: Origin
Date: Sat, 22 Oct 2022 17:01:22 GMT
Content-Length: 134
{"code":404,"message":"error getting log entry for 2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1345"}
Description
The
SearchLogQuery
endpoint (/api/v1/log/entries/retrieve
) is documented inopenapi.yaml
to return a JSON array with 0 or more resulting entries that match the search criteria. There is 0 mention of returning a 404 from this endpoint.If an request is searching for two entries (one that exists and one that doesn't), the server currently returns a 404 instead of just returning the one entry that actually exists in the log.
2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1355
exists but2a7899b181028bb64a5545cab55f0d2d54523b0de3e08c7f866d0c66a980a186676b6504c17d1345
doesn't:Expected:
Version
v1.0.0
The text was updated successfully, but these errors were encountered: