WebDAV: fixed buggy logging on MOVE command.

Logging was misleading as when the destination did NOT exist, the following message was shown:

  Node not found: <source path>

Fixed so that this message is only shown when the source path is missing.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@40734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2012-08-22 14:19:38 +00:00
parent 0567d9a52e
commit 9aa43eb059

View File

@@ -77,13 +77,12 @@ public class MoveMethod extends AbstractMoveOrCopyMethod
}
catch (FileNotFoundException e)
{
if (logger.isDebugEnabled())
{
logger.debug("Node not found: " + getPath());
}
if (sourceFileInfo == null)
{
if (logger.isDebugEnabled())
{
logger.debug("Source node not found: " + sourcePath);
}
// nothing to move
throw new WebDAVServerException(HttpServletResponse.SC_NOT_FOUND);
}