Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

58410: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3)
      58348: ALF-18620: WebDAV: Changing case of folder leads to error


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61982 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-11 23:30:02 +00:00
parent e3fc5681c1
commit 391a5e38c7
2 changed files with 142 additions and 0 deletions

View File

@@ -519,6 +519,13 @@ public class WebDAVHelper
// find it
FileInfo fileInfo = m_fileFolderService.resolveNamePath(rootNodeRef, splitPath);
String fileName = splitPath.get(splitPath.size() - 1);
if (!fileInfo.getName().equals(fileName))
{
throw new FileNotFoundException("Requested filename " + fileName +
" does not match case of " + fileInfo.getName());
}
// done
if (logger.isDebugEnabled())
{