-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CopyObjectRequest wrong host URL #2822
Comments
I can repro this with the sample code you gave. Looking into what might be causing this. |
This is a problem with aws-c-s3. Opening an issue on that repo to be tracked there: awslabs/aws-c-s3#424. Leaving this issue open for now, I will make sure to update here when that one gets closed |
The CRT client has a very limited support for copy object. One of the limitation is it only supports virtual host addressing style, here In your case, you override the host to your customized host, which is not the virtual hosting for S3 bucket. So, it's not currently supported by CRT client and currently we don't have any plan to support it. You can create a feature request. I'd recommend to use the regular C++ S3 client for copy object instead of CRT, since there won't be much benefits to use CRT to do copy object (No throughput improvement), since the work mostly done in the server side. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
When I try to copy object from one folder to another in same bucket I get an error
Invalid response status from request (aws-c-s3: AWS_ERROR_S3_INVALID_RESPONSE_STATUS)
. This happens only forCopyObject
, forHeadObject
,ListObjects
,GetObject
,PutObject
everything is correctExpected Behavior
Copy file from one folder to another. Bucket should be at the end of the host.
Current Behavior
Based on logs I see it has wrong
host
URLFor other requests it is correct
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.249
Compiler and Version used
gcc 13.1.0
Operating System and version
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: