ermiya
ermiya
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
Other SDK implementations may work but the main AWS SDK should be the one that is used for verify compatibility - it is S3-compatible not Minio-Compatible
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
Running rclone in a process like this is incredibly dangerous and extremely non practical for serverless environments
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
🎉🎉🎉
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
@Erisa | Support Engineer Legend thank you
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
Appreciate it
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
Thank you, let me know please if they can’t reproduce or at least have and now is filled as a bug
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
It’d be solved with under 10 lines of code; I’d do a PR if it was open source but alas not
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
I’m disappointed that I’ve provided full reproduction steps and nothing from CloudFlare
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
No, problem still persists
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
@Erisa | Support Engineer Is that clearer? Happy to provide any more info as needed
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
The same happens using the JS, Python and Java SDKs too
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
I’ve pointed to the SDK code here: https://stackoverflow.com/a/77633341/4800344
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
Above code yields:
Amazon.S3.AmazonS3Exception: Header 'x-amz-tagging-directive' with value 'COPY' not implemented
Amazon.S3.AmazonS3Exception: Header 'x-amz-tagging-directive' with value 'COPY' not implemented
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
The point is that while it’s not supported, the copy request should still go through
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
using Amazon.S3;
using Amazon.S3.Model;

var client = new AmazonS3Client(config);

var request = new CopyObjectRequest
{
SourceBucket = originBucket,
SourceKey = fileIdString,
DestinationBucket = destinationBucket,
DestinationKey = fileIdString
};

await client.CopyObjectAsync(request);
using Amazon.S3;
using Amazon.S3.Model;

var client = new AmazonS3Client(config);

var request = new CopyObjectRequest
{
SourceBucket = originBucket,
SourceKey = fileIdString,
DestinationBucket = destinationBucket,
DestinationKey = fileIdString
};

await client.CopyObjectAsync(request);
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
But SDK default behaviour is to send it
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
And CloudFlare only does a no-op if it’s not there
38 replies
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
They’re not, but the SDK will send the header
38 replies