tracker issue : CF-3916028

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

[ANeff] ER for: support Amazon S3's virtual directories

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 01/05/2015

Components: File Management, VFS-S3

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 1

While S3 doesn't support physical directories, it does support virtual directories (example: the "Create Folder" button in the S3 Management Console). Currently, CF only partially supports these virtual directories. directoryList() correctly returns type="Dir" for these virtual directories, but directoryDelete() only deletes the virtual directory but not its contents. And directoryCreate() is unable to create these virtual directories.

Repro:
1) In S3 Management Console, create the "mydir" folder w/in a bucket
2) In S3 Management Console, upload myfile.txt into the "mydir" folder
3) In S3 Management Console, delete the "mydir" folder and see the myfile.txt was also deleted (good)
4) Repeat #2
5) Run this:

<cfscript>
  writeDump(directoryList("s3://mybucket", true, "query"));
  directoryDelete("s3://mybucket/mydir");
  writeDump(directoryList("s3://mybucket", true, "query"));
</cfscript>

6) See the "mydir" virtual directory was deleted but the myfile.txt was not deleted (bad)

This ER is for 2 enhancements:
I) directoryDelete("s3://mybucket/mydir") should delete the "mydir" virtual directory AND its contents (all files prefixed w/ "mydir/" as well as all descendant virtual directories)
II) directoryCreate() should support creation of these virtual directories (just like S3 Management Console's "Create Folder" button)

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3916028

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

I think you're being very polite suggesting this is an enhancement rather than a bug.
Vote by External U.
9147 | January 05, 2015 06:05:32 AM GMT
Hi Adam, I just saw your comment. Thanks, and yes, I agree I should've filed this as a bug. I'm glad to see it's now been set ToFix/BugVerified. I'm currently waiting for a handful of S3 bugs to be fixed. Thanks!, -Aaron
Comment by External U.
9146 | September 03, 2015 12:43:00 AM GMT