S3 copyObject method not working
Issue #9
resolved
During the use of localstack with the Java AWS SDK I faced the following problem: the copyObject returns NoSuchBucket
error with 404.
I saw that localstack is using boto and boto should support the copy operation.
Comments (4)
-
Account Deactivated -
reporter After some research I realized that the issue is not with LocalStack itself, so I opened an issue on the moto github repo.
-
Account Deactivated Thanks for fixing this on moto side. We will bump the version number once moto publishes their next release. Closing this issue for now.
-
Account Deactivated - changed status to resolved
- Log in to comment
Thanks for reporting. Can you please provide the exact steps to reproduce, as well as your environment details (version of the AWS SDK version, etc).
Before calling the
copyObject
method in your code, did you make sure that 1) the bucket gets created, and 2) the object that should be copied gets created?Running a quick test, the following commands are working locally. The last command (
cp
froms3://...
tos3://...
) should hit the same API endpoint in LocalStack as thecopyObject
method in your test code.