mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ALF-12253: Incorrect path is generated if folder with name "webdav" is created
- Pointless servletPath argument removed from WebDAVHelper.getNodeForPath() - Analysis by Vadim confirms it's not needed and results in mis-handling of root folders called alfresco or webdav git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46201 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2012 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2013 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -81,7 +81,7 @@ public class MkcolMethod extends WebDAVMethod implements ActivityPostProducer
|
||||
// see if it exists
|
||||
try
|
||||
{
|
||||
getDAVHelper().getNodeForPath(getRootNodeRef(), getPath(), getServletPath());
|
||||
getDAVHelper().getNodeForPath(getRootNodeRef(), getPath());
|
||||
// already exists
|
||||
throw new WebDAVServerException(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
|
||||
}
|
||||
@@ -109,7 +109,7 @@ public class MkcolMethod extends WebDAVMethod implements ActivityPostProducer
|
||||
parentPath = parentPath.substring(0, lastPos + 1);
|
||||
try
|
||||
{
|
||||
FileInfo parentFileInfo = getDAVHelper().getNodeForPath(getRootNodeRef(), parentPath, m_request.getServletPath());
|
||||
FileInfo parentFileInfo = getDAVHelper().getNodeForPath(getRootNodeRef(), parentPath);
|
||||
parentNodeRef = parentFileInfo.getNodeRef();
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
|
Reference in New Issue
Block a user