You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Brendan Long (JIRA)" <ji...@apache.org> on 2011/08/17 18:42:27 UTC

[jira] [Created] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

S3Endpoint requires ListAllMyBuckets permission
-----------------------------------------------

                 Key: CAMEL-4344
                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
             Project: Camel
          Issue Type: Bug
          Components: camel-aws
    Affects Versions: 2.8.0
            Reporter: Brendan Long
            Priority: Minor


In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().

We can't just call doesBucketExist() because it returns true if someone else owns the bucket.

Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller updated CAMEL-4344:
------------------------------------

    Fix Version/s: 2.9.0
       Issue Type: Improvement  (was: Bug)

> S3Endpoint requires ListAllMyBuckets permission
> -----------------------------------------------
>
>                 Key: CAMEL-4344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws
>    Affects Versions: 2.8.0
>            Reporter: Brendan Long
>            Assignee: Christian Müller
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: s3-endpoint-no-list-buckets.java.diff
>
>
> In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().
> We can't just call doesBucketExist() because it returns true if someone else owns the bucket.
> Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CAMEL-4344:
-------------------------------

    Fix Version/s: 2.8.2

> S3Endpoint requires ListAllMyBuckets permission
> -----------------------------------------------
>
>                 Key: CAMEL-4344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws
>    Affects Versions: 2.8.0
>            Reporter: Brendan Long
>            Assignee: Christian Müller
>            Priority: Minor
>             Fix For: 2.8.2, 2.9.0
>
>         Attachments: s3-endpoint-no-list-buckets.java.diff
>
>
> In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().
> We can't just call doesBucketExist() because it returns true if someone else owns the bucket.
> Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087270#comment-13087270 ] 

Christian Müller commented on CAMEL-4344:
-----------------------------------------

Committed r1159408

> S3Endpoint requires ListAllMyBuckets permission
> -----------------------------------------------
>
>                 Key: CAMEL-4344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.8.0
>            Reporter: Brendan Long
>            Assignee: Christian Müller
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: s3-endpoint-no-list-buckets.java.diff
>
>
> In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().
> We can't just call doesBucketExist() because it returns true if someone else owns the bucket.
> Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

Posted by "Brendan Long (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brendan Long updated CAMEL-4344:
--------------------------------

    Attachment: s3-endpoint-no-list-buckets.java.diff

A patch to try to list the contents of the bucket (with a limit of 0 results) instead of listing all buckets.

> S3Endpoint requires ListAllMyBuckets permission
> -----------------------------------------------
>
>                 Key: CAMEL-4344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.8.0
>            Reporter: Brendan Long
>            Priority: Minor
>         Attachments: s3-endpoint-no-list-buckets.java.diff
>
>
> In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().
> We can't just call doesBucketExist() because it returns true if someone else owns the bucket.
> Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller resolved CAMEL-4344.
-------------------------------------

    Resolution: Fixed

Thanks Brendan Long for your patch. Looking for the next one... ;-)

> S3Endpoint requires ListAllMyBuckets permission
> -----------------------------------------------
>
>                 Key: CAMEL-4344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws
>    Affects Versions: 2.8.0
>            Reporter: Brendan Long
>            Assignee: Christian Müller
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: s3-endpoint-no-list-buckets.java.diff
>
>
> In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().
> We can't just call doesBucketExist() because it returns true if someone else owns the bucket.
> Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (CAMEL-4344) S3Endpoint requires ListAllMyBuckets permission

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller reassigned CAMEL-4344:
---------------------------------------

    Assignee: Christian Müller

> S3Endpoint requires ListAllMyBuckets permission
> -----------------------------------------------
>
>                 Key: CAMEL-4344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4344
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.8.0
>            Reporter: Brendan Long
>            Assignee: Christian Müller
>            Priority: Minor
>         Attachments: s3-endpoint-no-list-buckets.java.diff
>
>
> In S3Endpoint.start(), we determine if a user has permission to access a bucket by sending a ListAllMyBuckets request, and then checking if the bucket is in the response. Instead, we could just query the bucket directly, like in S3Client.doesBucketExist().
> We can't just call doesBucketExist() because it returns true if someone else owns the bucket.
> Since we never call listBuckets() again, this would remove one required permission.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira