[jboss-jira] [JBoss JIRA] (JGRP-1975) JGroups S3_PING should support sub-folders in S3.
Bela Ban (JIRA)
issues at jboss.org
Thu Aug 17 12:33:00 EDT 2017
[ https://issues.jboss.org/browse/JGRP-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban closed JGRP-1975.
--------------------------
Resolution: Out of Date
> JGroups S3_PING should support sub-folders in S3.
> -------------------------------------------------
>
> Key: JGRP-1975
> URL: https://issues.jboss.org/browse/JGRP-1975
> Project: JGroups
> 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
(v7.2.3#72005)
More information about the jboss-jira
mailing list