Skip to content
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

Handle Invalid User error coming from madmin #314

Merged
merged 2 commits into from
Oct 6, 2020

Conversation

dvaldivia
Copy link
Collaborator

Right now we display Internal Server Error when invalid credentials are presneted, this makes it so we only present Unauthorized

@dvaldivia dvaldivia self-assigned this Oct 5, 2020
Copy link
Collaborator

@cesnietor cesnietor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If minio changes the message this will no longer happen, I suggest using ErrAdminNoSuchUser from minio.

@dvaldivia
Copy link
Collaborator Author

@cesnietor i tried but that error is an integer so it's hard to compare against as it gets transformed into a api response which makes the comparison harder

restapi/error.go Outdated Show resolved Hide resolved
Right now we display `Internal Server Error` when invalid credentials are presneted, this makes it so we only present `Unauthorized`
@dvaldivia dvaldivia merged commit 6d8f1c4 into minio:master Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants