Skip to content

Separator in Window #740

@ccarlenzoli

Description

@ccarlenzoli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions