Fix URI when using default LDIF
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 28 Nov 2015 18:03:51 +0000 (18:03 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 28 Nov 2015 18:03:51 +0000 (18:03 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8650 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.cms/src/org/argeo/cms/internal/kernel/NodeUserAdmin.java

index d6d721f6dcc9e33c84a765566b6e128760870e92..2c6fe7de00ac60a618cf38eab1ef966d8f2ff46d 100644 (file)
@@ -290,10 +290,11 @@ public class NodeUserAdmin implements UserAdmin, KernelConstants {
                                        if (uri.startsWith("/") || uri.startsWith("./")
                                                        || uri.startsWith("../"))
                                                u = new File(uri).getCanonicalFile().toURI();
-                                       else if (!uri.contains("/"))
-                                               u = new File(nodeBaseDir, uri).getCanonicalFile()
-                                                               .toURI();
-                                       else
+                                       else if (!uri.contains("/")) {
+                                               u = new URI(nodeBaseDir.toURI()+ uri);
+                                               // u = new File(nodeBaseDir, uri).getCanonicalFile()
+                                               // .toURI();
+                                       } else
                                                throw new CmsException("Cannot interpret " + uri
                                                                + " as an uri");
                                } else if (u.getScheme().equals("file")) {