-
Notifications
You must be signed in to change notification settings - Fork 270
Description
I'm using the tool in Openshift working perfectly but when I tried to test on my Notebook some features of my application I ended up with an error on managing Folders.
Since I'm working on Windows I understood that problem is related to a wrong management of file separator.
I did a workaround at line 1518 of S3ProxyHanlder changing this code
switch (metadata.getType()) {
case FOLDER:
// fallthrough
case RELATIVE_PATH:
if (delimiter != null) {
commonPrefixes.add(metadata.getName());
continue;
}
break;
default:
break;
}
in
switch (metadata.getType()) {
case FOLDER:
// fallthrough
case RELATIVE_PATH:
if (delimiter != null) {
commonPrefixes.add(metadata.getName().replace(File.separatorChar, '/'));
continue;
}
break;
default:
break;
}
following the same code LocalBlobStore (jclouds) is doing in its filterDirectory method.
Hope you will officially fix this behavior so I will use the new version from Maven Repo...otherwise I have to keep a local copy :)
Best