scireum / s3ninja

S3 ninja emulates the Amazon S3 API for developement and test purposes
MIT License
493 stars 91 forks source link

BucketAlreadyOwnedByYouException raised when trying to recreate an already existing bucket #243

Open Kevinbarre opened 8 months ago

Kevinbarre commented 8 months ago

Hello. We've recently updated our docker image to 8.3.3 in development environment, and noticed a possible regression from the 8.3.2 version.

Now when we're trying to call in our Java code s3Client.createBucket (were s3Client is an instance of software.amazon.awssdk.services.s3.S3Client in version 2.24.5), we get a BucketAlreadyOwnedByYouException. This was not the case in previous version, and this is also not the case with our production S3.

We assume this might be related to this change: https://github.com/scireum/s3ninja/pull/234/files#diff-195fb79af6718a11c2a02f5d4f89adda31f22f6fe04a75ce32416c544d14fd53R495

Do you know if this is an intented new behavior from your side, and we should adapt ? Or if this is unwanted and we should just stick to 8.3.2 for now ?

Thanks