[jboss-jira] [JBoss JIRA] (WFLY-5157) JGroups S3_PING should support sub-folders in S3.

Brian Stansberry (JIRA) issues at jboss.org
Wed Nov 4 21:31:00 EST 2015


     [ https://issues.jboss.org/browse/WFLY-5157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry reassigned WFLY-5157:
--------------------------------------

    Assignee:     (was: Jason Greene)


> JGroups S3_PING should support sub-folders in S3.
> -------------------------------------------------
>
>                 Key: WFLY-5157
>                 URL: https://issues.jboss.org/browse/WFLY-5157
>             Project: WildFly
>          Issue Type: Enhancement
>            Reporter: Dinesh Wijekoon
>
> As in the code (https://github.com/belaban/JGroups/blob/master/src/org/jgroups/protocols/S3_PING.java#L66)
> {code}
> if(prefix != null && !prefix.isEmpty()) {
>             ListAllMyBucketsResponse bucket_list=conn.listAllMyBuckets(null);
>             List buckets=bucket_list.entries;
>             if(buckets != null) {
>                 boolean found=false;
>                 for(Object tmp: buckets) {
>                     if(tmp instanceof Bucket) {
>                         Bucket bucket=(Bucket)tmp;
>                         if(bucket.name.startsWith(prefix)) {
>                             location=bucket.name;
>                             found=true;
>                         }
>                     }
>                 }
>                 if(!found) {
>                     location=prefix + "-" + java.util.UUID.randomUUID().toString();
>                 }
>             }
>         }
> {code}
> This stop people by pointing s3_ping into a sub folder in s3, and it requires a root bucket. This will make life so much harder for a organisation which users multiple instances running for different clients.  



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list