Skip to content
Snippets Groups Projects
Verified Commit 6eb855d3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Fix wrong url in filesystem response (when using proxies)

parent 5d5ea963
No related branches found
No related tags found
2 merge requests!103Release 0.11.0,!100F filesystem response url
Pipeline #39664 passed
......@@ -86,12 +86,11 @@ public class FileSystemResource extends AbstractCaosDBServerResource {
}
if (file.isDirectory()) {
String referenceString = getReference().toString();
if (!referenceString.endsWith("/")) {
referenceString = referenceString + "/";
}
String path = (specifier.endsWith("/") ? specifier : specifier + "/");
String referenceString = getUtils().getServerRootURI() + "/FileSystem/" + path;
final Element folder = new Element("dir");
folder.setAttribute("path", (specifier.endsWith("/") ? specifier : specifier + "/"));
folder.setAttribute("path", path);
folder.setAttribute("name", file.getName());
folder.setAttribute("url", referenceString);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment