tracker issue : CF-3915079

select a category, or use search below
(searches all categories and all time range)

[ANeff] Bug for: S3 bucket re-creation fails if bucket deleted via S3 Management Console - also directoryExists() returns YES

| View in Tracker

Status/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

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on February 16, 2019 using build 2016.0.01.298513
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



I keep running into this when testing S3. Sometimes I delete a bucket via the S3 Management Console and then wonder why I can't re-create the bucket via CF =P Thanks!, -Aaron
Comment by External U.
9176 | January 06, 2015 06:35:37 AM GMT
Could this please be verified? Simply create a bucket via directoryCreate(), then delete it within S3 Management Console, then try re-creating it via directoryCreate() and see exception. Thanks!, -Aaron
Comment by External U.
9177 | January 10, 2015 06:31:28 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). directoryExists() now correctly returns false after the directory is deleted via S3 Management Console. Afterwards, directoryCreate() is able to recreate the directory successfully. Thank you very much!, -Aaron
Comment by Aaron N.
30277 | February 16, 2019 06:38:52 AM GMT