-
Notifications
You must be signed in to change notification settings - Fork 17
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
thamos images
errors
#1184
Comments
is it An example command invocation (and config?) that reproduces the problem would help
which error? Can we have some more context? |
/triage needs-information |
it is
|
The bug is Note the request is for page 3 when there is no page 3:
/transfer thamos The user API started returning a 404 in this situation starting in v0.35.6 after this change: thoth-station/user-api@ab32cad#diff-0c1d9c73b678717b9143917cfc52d1fccbfcdf488adb2375865c8adca9a27a6eR376-R379 /remove-triage needs-information |
/sig user-experience |
By the way, I am not sure if a 404 is appropriate here: maybe the API should just return a 200/OK with a total of 0 results, no? Still, it sounds like |
Related: #1109 |
delivering a 404 sounds reasonable when no images are available, or when requesting page 5 with per_page 10 and a total of 8 images available. 404 is the server signaling, that the requrested data could not be found, giving 200 with an empty list if a a incorrect behavior, isnt it? |
I tried to create an integration test covering this, see thoth-station/integration-tests#351 |
Maybe. But:
That might better be answered by a 400 (bad request) instead? Or even a 200 with empty results (meaning "this is what I found: nothing"). Note that the API response includes a total item count and a page count in the response headers; these complement an empty 200 response nicely I think.
IMO I think it is a better behavior when appropriate... but I can buy the 404 too, no too-hard feelings. |
Acceptance Criteria
|
This is not a thamos issue but a user-api issue. The correct response code is 200 for an empty list. 404 would indicate that the collection of images does not exist. |
thamos images
throws an error:/kind bug
The text was updated successfully, but these errors were encountered: