Title:
[ANeff] Bug for: S3 bucket re-creation fails if bucket deleted via S3 Management Console - also directoryExists() returns YES
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 12/27/2014
Components: File Management
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
If a CF-created bucket is deleted via the S3 Management Console, then CF is unable to re-create the bucket. Additionally, directoryExists() returns YES for the deleted bucket.
Steps to reproduce:
1) Run directoryCreate("s3://mybucket")
2) Run directoryDelete("s3://mybucket")
3) See "mybucket" is deleted (good)
4) Repeat step #1
5) Delete "mybucket" via S3 Management Console
6) Repeat step #1
7) See exception thrown (bug #1):
----------------------
The specified directory s3://mybucket/ could not be created.
The most likely cause of this error is that s3://mybucket/ already exists on your file system.
----------------------
8) Run directoryExists("s3://mybucket")
9) See result "YES" (bug #2)
10) Create "mybucket" via S3 Management Console
11) Repeat step #2
12) Repeat step #1
13) See "mybucket" is successfully created (good)
Steps 10 & 11 are a workaround (unless bucket name had any UPPERCASE letters, then this workaround fails and re-creation is not possible) and should be unnecessary.
Bug #1: CF should be able to re-create any deleted bucket (even CF-created ones, deleted via S3 Management Console, that had any UPPERCASE letters)
Bug #2: directoryExists() should not return YES for a deleted bucket
Filing these 2 bugs together b/c resolving bug #1 should resolve bug #2.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3915079
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
External Test Config: Verified w/ CF11 Update 3 Standalone Enterprise on x64 Windows
Attachments:
Comments: