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

Better error msg if metadata contains a non us-ascii character #770

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

vadmeste
Copy link
Member

Pass 'é' or other non us-ascii character as a metadata value shows
a signature mismatch error. The reason is that S3 server ignores
those characters in headers since only US-ASCII characters are
supported in HTTP headers.

This commit shows an exception so users can understand better
what's going on.

Fixes #764

@poornas
Copy link
Contributor

poornas commented Jun 11, 2019

@vadmeste, can you rebase?

@vadmeste vadmeste force-pushed the error branch 3 times, most recently from a5f3a1b to 0a019ea Compare June 12, 2019 11:16
@vadmeste
Copy link
Member Author

@vadmeste, can you rebase?

Done

Pass 'é' or other non us-ascii character as a metadata value shows
a signature mismatch error. The reason is that S3 server ignores
those characters in headers since only US-ASCII characters are
supported in HTTP headers.

This commit shows an exception so users can understand better
what's going on.
Copy link
Collaborator

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LGTM

@kannappanr kannappanr merged commit e246926 into minio:master Jun 12, 2019
tjd2002 added a commit to regro-cf-autotick-bot/minio-feedstock that referenced this pull request Jun 13, 2019
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.

minio.error.SignatureDoesNotMatch non ascii metadata
3 participants