[jboss-jira] [JBoss JIRA] (WFLY-5157) JGroups S3_PING should support sub-folders in S3.
Dinesh Wijekoon (JIRA)
issues at jboss.org
Fri Aug 21 06:25:27 EDT 2015
Dinesh Wijekoon created WFLY-5157:
-------------------------------------
Summary: 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
Affects Versions: 8.2.1.Final
Reporter: Dinesh Wijekoon
Assignee: Jason Greene
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.3.15#6346)
More information about the jboss-jira
mailing list