mso-net / lucee-aws

Lucee extension to provide simpler access to common AWS commands through the AWS SDK
MIT License
25 stars 6 forks source link

a standalone setObjectAcl function #14

Closed chapmandu closed 9 years ago

chapmandu commented 9 years ago

It would be sexy to be able to specify an ACL on an object that may be different from the bucket's policy.

SimonHooker commented 9 years ago

No problem

SimonHooker commented 9 years ago

It looks like the main headache with this will be fully implementing http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/AccessControlList.html in a friendly way.

Does http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/CannedAccessControlList.html have the sufficient granularity that you'd need?

I mean it feels like an AuthenticatedReadWrite is missing there

chapmandu commented 9 years ago

That's plenty. in all honesty, I would probably only use public read, and private.

SimonHooker commented 9 years ago

No problem, I'll get that much implemented later on then :)

SimonHooker commented 9 years ago

@chapmandu you can now specify the appropriate string as argument acl= to putObject, or alternatively do setObjectAcl( key = ' ...' , acl = = '...' )

Not a perfect solution but it adds a little bit of functionality hey :)

chapmandu commented 9 years ago

YES! The acl arg in putObject will be very useful.. probably more so than setObjectAcl..