mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user