-
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 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
Expected
host
URL should bes3.giraffe360-mimosa.com
and file should be copiedfrom
/cold-data/projects/db9768d14f7c4055aa7518e42b633888/floorplan/roomsketcher/floorplan-ALL-final_1_0.svg
to
/cold-data/projects/db9768d14f7c4055aa7518e42b633888/floorplan/roomsketcher/final_backups/floorplan-ALL-final_1_0_2024-01-24_13-03-01.svg
Current Behavior
Based on logs I see it has wrong
host
URLFor other requests it is correct
cold-data
is bucket name.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: