Skip to content

CopyObject meta request bug fixes

Pre-release
Pre-release
Compare
Choose a tag to compare
@cmello cmello released this 21 Feb 17:21
· 156 commits to main since this release
8af5489

Invoke headers callback when CopyObject request is bypassed

Prior to this fix the headers callback was invoked only
when the Copy meta request performed a multi-part copy, but not
when the object was small and resulted in a bypassed CopyObject request.

This commit fixes the issue, invoking the headers callback
in both cases.

Support leading slash in x-amz-copy-source

The CopyObject meta request required the x-amz-copy-source to be in strict form of {bucket}/{key}.
But as per S3 docs, /{bucket}/{key} is also valid.

This fix adds support for both formats.