Repository navigation
rgw/auth: correcting the error message to indicate - #55371
Conversation
|
dout messages only help if the user is also an admin that can look at rgw debug logs. it would be even better if we could add a Message to the xml Error response using this auth code doesn't have ready access to the req_state, so we'd have to do something else.. for example, add a special error code ERR_PRESIGNED_URL_EXPIRED to return there, then map that back to EPERM and add a message where we have a req_state |
|
@cbodley : I can see that you have approved the PR, but you have additional comments, do you want those comments to be addressed as a part of this PR? |
|
@pritha-srivastava in this case, I agree with Casey--if the comment being addressed is, let's try to send back a human-readable message to the client |
|
(I asked for us to consider this in, iirc, gchat) |
It was in the bz, I probably misunderstood what you had to say |
up to you guys. i approved the PR because it improves existing error messages, and is obviously correct - we could merge it without qa. but if you think the s->err.message changes are important, you can either follow up on that here or as a separate pr |
|
I'd say do it in this one, if it's not difficult, and I don't remember it being? |
I'll do it in this PR |
|
jenkins test make check |
clearly that a pre-signed URL has expired. Signed-off-by: Pritha Srivastava <[email protected]>
0962ccc to
6ee4416
Compare
|
jenkins test make check |
|
@pritha-srivastava do you think this is worth backports? if so, would you please create a tracker for it? @cbodley : I have opened a tracker: https://github.com/ceph/ceph/pull/55371/files, what releases should I set for backport? |
We have special error handling for these cases but we don't check the negative value of the error so it instead gets caught as an error not defined with a response and throws a http 500. This was implement by [1] and the same way done with [2]. [1] ceph#55371 [2] ceph#56044 Signed-off-by: Tobias Urdin <[email protected]>
We have special error handling for these cases but we don't check the negative value of the error so it instead gets caught as an error not defined with a response and throws a http 500. This was implement by [1] and the same way done with [2]. [1] #55371 [2] #56044 Signed-off-by: Tobias Urdin <[email protected]> (cherry picked from commit c01b5b1)
We have special error handling for these cases but we don't check the negative value of the error so it instead gets caught as an error not defined with a response and throws a http 500. This was implement by [1] and the same way done with [2]. [1] ceph#55371 [2] ceph#56044 Signed-off-by: Tobias Urdin <[email protected]> (cherry picked from commit c01b5b1)
clearly that a pre-signed URL has expired.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e