GetObjectTagging
returns wrong error message on missing object
#18791
Labels
GetObjectTagging
returns wrong error message on missing object
#18791
Expected Behavior
Previously a useful error would be returned (
NoSuchBucket
orNoSuchKey
) which could then be used by the client to determine how to handle the error.Current Behavior
A generic
We encountered an internal error, please try again.
is returnedPossible Solution
Might be a missing fall-through here:
RELEASE.2024-01-11T07-46-16Z...RELEASE.2024-01-13T07-53-03Z#diff-e7bc5ddd6854880db5918a96700afb6815d4c52c9a66734d00ef9974e6c8ebc4R3311
Such that
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
is not being called on the missing bucket/object caseSteps to Reproduce (for bugs)
bash
python
Context
Previously, I could change the logic of my storage client depending on whether or not an object/key was missing. For example, I could return a "null" result if asked for the tags for a key which does not exist.
Now, with the generic error, I cannot be sure what the fault is, and so have to pass the error on instead of handling it. This breaks my use-case.
Regression
Is this issue a regression? Yes
minio/minio:RELEASE.2024-01-11T07-46-16Z
The text was updated successfully, but these errors were encountered: