From d07499fddd8e005e86156ca8c4b41915c4080558 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Thu, 12 Jul 2012 09:45:46 +0000 Subject: [PATCH] WebDAV: fix broken code from moving inlining of getRepositoryPath(...) from WebDAV to WebDAVHelper. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@39173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/repo/webdav/WebDAV.java | 2 +- source/java/org/alfresco/repo/webdav/WebDAVHelper.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }