tracker issue : CF-3863487

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

Calling StoreAddACL before StoreSetMetadata doesn't commit the new ACL to S3

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Indy Griffiths / Indy Griffiths (Indy Griffiths)

Created: 12/07/2014

Components: File Management, VFS-S3

Versions: 11.0

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 1

Duplicate ID:	CF-3043124

Problem Description:
When working with S3 objects, calling StoreAddACL before StoreSetMetadata doesn't commit the new ACL to the S3 object. 

Related to bug #3043124

Steps to Reproduce:
1. Make a call to StoreAddACL to set a custom ACL for a S3 object
2. Make a call to StoreSetMetadata to set a custom piece of metadata for the object (in this example a custom Content-Type header)

<cfset StoreAddACL("s3://bucket/object.jpg", [{group="all", permission="read"}])>
<cfset StoreSetMetadata("s3://bucket/object.jpg", {"img_id"="12345"})>

Actual Result:
The ACL specified in StoreAddACL isn't applied to the object. 

Expected Result:
The new ACL specified in StoreAddACL is applied to the S3 object. In the above example, it's expected for the read permission to be applied to the 'all' group.

Any Workarounds:
Place the call to StoreSetMetadata before StoreAddACL.

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

Watson Bug ID:	3863487

External Customer Info:
External Company:  
External Customer Name: indy-griffiths
External Customer Email:  
External Test Config: My Hardware and Environment details:



ColdFusion 11,0,01,291346

Windows 8.1

Attachments:

Comments:

+1 - StoreSetMetadata() should never remove an S3 object's ACLs (which is what's happening here)
Vote by External U.
9681 | December 27, 2014 02:52:34 AM GMT
This is a long-standing bug. Related URL: http://www.raymondcamden.com/2011/2/7/ColdFusion-S3-Implementation-bug-with-metadata-and-ACLs Thanks!, -Aaron
Comment by External U.
9680 | December 27, 2014 03:34:11 AM GMT