camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-5790) aws-s3 should support retrieving a single object request
Date Thu, 15 Nov 2012 20:41:12 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498320#comment-13498320
] 

Christian Müller edited comment on CAMEL-5790 at 11/15/12 8:40 PM:
-------------------------------------------------------------------

Jason, do you consider to work on a patch and an unit test? This would speed up to get this
issue resolved.

http://camel.apache.org/contributing.html
http://camel.apache.org/building.html


                
      was (Author: muellerc):
    Jason, do you consider to work on a patch and an unit test?

http://camel.apache.org/contributing.html
http://camel.apache.org/building.html


                  
> aws-s3 should support retrieving a single object request
> --------------------------------------------------------
>
>                 Key: CAMEL-5790
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5790
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>            Assignee: Willem Jiang
>         Attachments: getS3ObjectByFileName.patch
>
>
> Currently, it aws-s3 tries to list objects and if that fails it attempts to create a
new bucket.  This logic shouldn't be done by default. Also, you may only want to download
a single file and if the listing fails, you can't do so.
> For example, this code is currently causing a 404 in the aws-s3 endpoint.  This keeps
the component from ever downloading anything, even the bucket already exists. I am not sure
why this fails.
> {code}
> getS3Client().listObjects(new ListObjectsRequest(bucketName, null, null, null, 0));
> {code}
> However, if I change the code to download a single file using the same bucket name, it
works.
> {code}
> getS3Client().getObject(new GetObjectRequest(bucketName, filename));
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message