Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D035DDC69 for ; Thu, 8 Nov 2012 00:05:12 +0000 (UTC) Received: (qmail 12580 invoked by uid 500); 8 Nov 2012 00:05:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 12529 invoked by uid 500); 8 Nov 2012 00:05:12 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 12517 invoked by uid 99); 8 Nov 2012 00:05:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 00:05:12 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of massil.nait@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 00:05:07 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TWFby-0002PC-JP for dev@camel.apache.org; Wed, 07 Nov 2012 16:04:46 -0800 Date: Wed, 7 Nov 2012 16:04:46 -0800 (PST) From: massyl To: dev@camel.apache.org Message-ID: <1352333086595-5722324.post@n5.nabble.com> Subject: aws-s3 EndPoint and s3 Acl on created objects MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, i'm working with aws-s3 endpoint and facing some limitation regarding setting Acl on new created objects. There is no way to specify what Acl to set on those newly created objects. for new created buckets we have the possibility to use setPolicy(String) on S3Configuration but not for created objects. This limitation comes from S3Producer that creates internaly PutObjectRequest without offring a means for providing Acl to set on this PutObjectRequest. What do you think about enhancing this S3Producer to accept two new headers for example : 1) exchange.setHeader(S3Constant.CANNED_ACL,"public-read") // to set commonly used ACL as strings 2) exchange.setHeader(S3Constant.ACL, new AccessControlList(...) )// to set more specific ACL using a well constructed object NB: 1) The string will be used to get the right object from CannedAccessControlList amazon enum for example 2) AccessControlList may be amazon's AccessControlList object or a custom Camel object that will map to amazon one. Thanks in advance for your reply Massyl -- View this message in context: http://camel.465427.n5.nabble.com/aws-s3-EndPoint-and-s3-Acl-on-created-objects-tp5722324.html Sent from the Camel Development mailing list archive at Nabble.com.