-
Notifications
You must be signed in to change notification settings - Fork 351
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
Fixed Insufficient permissions ("unauthorized") bug #8004
Fixed Insufficient permissions ("unauthorized") bug #8004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Approving as this is clearly better 🥳
Some things I would prefer us to do before you pull (but none is blocking!):
- Open a server-side issue that headObject requests return no error message. I am not sure we can solve it (and remain a REST API), but at least we will have some record of this! It is certainly out of the scope of this PR.
- Personally I would prefer "Not Authorized" or "Unauthorized" to "Insufficient Permissions"; maybe ask @talSofer pick a good phrasing?
Co-authored-by: Ariel Shaqed (Scolnicov) <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to "Unauthorized" authorized by Tal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StillLGTM :-) thanks!
Closes #(Insert issue number closed by this PR)
Change Description
Added an if statement checking whether the
errorMessage
comes back empty (which it always does) in that case we call theAuthorizationError()
with the string "Insufficient Permissions".Background
While there is no access for reading a file through the web ui client, a weird error jumped saying "Gn" instead of stating that this is an Authorization error due to insufficient permissions.
Bug Fix
extractError
func returned an empty stringAuthorizationError()
with the string "Insufficient Permissions"Testing Details
The code was tested in an dev environment