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

s3: Add x-minio-error-code header for S3 HEAD requests #17283

Merged
merged 2 commits into from
May 26, 2023

Conversation

vadmeste
Copy link
Member

Description

For HeadObject and HeadBucket, it is hard to understand the reason
of a 403 response since the HEAD request does not return a response body.

This PR will add a header which contains the error code that will be
sent if this was a GET and not a HEAD request.

e.g.: AccessDenied, SignatureDoesNotMatch, InvalidAccessKeyId

Motivation and Context

How to test this PR?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

For HeadObject and HeadBucket, it is hard to understand the reason of a
403 response since the HEAD request does not return a response body.

This PR will add a header which contains the error code that will be
sent if this was a GET and not a HEAD request.

e.g.: AccessDenied, SignatureDoesNotMatch, InvalidAccessKeyId
@harshavardhana harshavardhana merged commit 6425fec into minio:master May 26, 2023
17 checks passed
@bh4t bh4t added the bugfix label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants