diff --git a/source/java/org/alfresco/repo/webdav/WebDAV.java b/source/java/org/alfresco/repo/webdav/WebDAV.java index 2237908bd1..090baba051 100644 --- a/source/java/org/alfresco/repo/webdav/WebDAV.java +++ b/source/java/org/alfresco/repo/webdav/WebDAV.java @@ -238,7 +238,7 @@ public class WebDAV // Root path - private static final String RootPath = PathSeperator; + public static final String RootPath = PathSeperator; // Map WebDAV property names to Alfresco property names diff --git a/source/java/org/alfresco/repo/webdav/WebDAVHelper.java b/source/java/org/alfresco/repo/webdav/WebDAVHelper.java index 89e28fd878..a9ddbe02e2 100644 --- a/source/java/org/alfresco/repo/webdav/WebDAVHelper.java +++ b/source/java/org/alfresco/repo/webdav/WebDAVHelper.java @@ -897,7 +897,7 @@ public class WebDAVHelper if (strPath == null || strPath.length() == 0) { // If we still have not got a path then default to the root directory - strPath = RootPath; + strPath = WebDAV.RootPath; } else if (strPath.startsWith(request.getServletPath())) { @@ -910,13 +910,13 @@ public class WebDAVHelper } else { - strPath = RootPath; + strPath = WebDAV.RootPath; } } // Make sure there are no trailing slashes - if (strPath.length() > 1 && strPath.endsWith(DIR_SEPARATOR)) + if (strPath.length() > 1 && strPath.endsWith(WebDAV.PathSeperator)) { strPath = strPath.substring(0, strPath.length() - 1); }