You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the s3 client's create bucket method no exception is thrown when the bucket already exists. I also tried changing the region from eu-west-1 to eu-west-2 (by using Loc. Constraints) but still no exception is being raised.
The image below is the unit test, you'll see in the console the bucket exists.
This is the code I would expect to throw an error:
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
When running the s3 client's create bucket method no exception is thrown when the bucket already exists. I also tried changing the region from eu-west-1 to eu-west-2 (by using Loc. Constraints) but still no exception is being raised.
The image below is the unit test, you'll see in the console the bucket exists.
This is the code I would expect to throw an error:
Expected Behavior
I expected BucketAlreadyExists exception to be raised.
Current Behavior
No issues, response is 200.
Please note, this happens immediately after upgrading from version 4 to 5.0.14
Reproduction Steps
Possible Solution
Looking at the boto code it seems the check in create bucket should be:
Instead of:
Additional Information/Context
Please see the preceding screenshots for more details.
You will see that list buckets queries the correct property but create bucket incorrectly queries a property with no buckets
SDK version used
5.0.14
Environment details (OS name and version, etc.)
Mac OS - 14.6.1. Python 3.9 (Anaconda env)
The text was updated successfully, but these errors were encountered: