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

[Bug] - CopyObject should replace the Content-Type when copying with 'REPLACE' metadata directive #998

Open
niksis02 opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@niksis02
Copy link
Contributor

Describe the bug
When attempting to copy an object with the REPLACE metadata directive, the Content-Type should be updated with the provided value: however, this does not occur in the gateway.

To Reproduce

// Create a bucket
aws s3api create-bucket --bucket tests

// Create an object
aws s3api put-object --bucket test --key my-obj --content-type audio/mp3

// Copy the object with REPLACE metadata directive
aws s3api copy-object --bucket test --key obj-copy --copy-source test/my-obj --content-type audio/mpeg --metadata-directive REPLACE

// Head object to see the copied result
aws s3api head-object --bucket test --key obj-copy

Expected behavior
The Content-Type should be replaced with the newly provided value.

@niksis02 niksis02 added the bug Something isn't working label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant