mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ALF-11345 Avoid double stripping of /alfresco from the WebDAV lock path
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32588 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -281,12 +281,17 @@ public class WebDAVHelper
|
||||
return fileFolderService.getFileInfo(rootNodeRef);
|
||||
}
|
||||
|
||||
// remove the servlet path from the path
|
||||
if (servletPath != null && servletPath.length() > 0 && path.startsWith(servletPath))
|
||||
// Remove the servlet path from the path, assuming it hasn't already been done
|
||||
if (servletPath != null && servletPath.length() > 0)
|
||||
{
|
||||
// Need to ensure we don't strip /alfresco from a site of /alfresco_name/
|
||||
String comparePath = servletPath + "/";
|
||||
if (path.startsWith(comparePath))
|
||||
{
|
||||
// Strip the servlet path from the relative path
|
||||
path = path.substring(servletPath.length());
|
||||
}
|
||||
}
|
||||
|
||||
// split the paths up
|
||||
List<String> splitPath = splitAllPaths(path);
|
||||
|
Reference in New Issue
Block a user