mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Improved debugging in areas relating to the fix in r16226.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16228 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -255,7 +255,7 @@ public class AVMRemoteStore extends BaseRemoteStore
|
||||
avmService.createFile(parts[0], parts[1], content);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("AVMRemoteStore.createDocument() " + avmPath);
|
||||
logger.debug("AVMRemoteStore.createDocument() " + avmPath + " of size: " + avmService.lookup(-1, avmPath).getLength());
|
||||
}
|
||||
catch (AccessDeniedException ae)
|
||||
{
|
||||
@@ -295,7 +295,7 @@ public class AVMRemoteStore extends BaseRemoteStore
|
||||
writer.putContent(content);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("AVMRemoteStore.updateDocument() " + avmPath);
|
||||
logger.debug("AVMRemoteStore.updateDocument() " + avmPath + " of size: " + avmService.lookup(-1, avmPath).getLength());
|
||||
}
|
||||
catch (AccessDeniedException ae)
|
||||
{
|
||||
|
@@ -165,7 +165,7 @@ public abstract class BaseRemoteStore extends AbstractWebScript
|
||||
|
||||
// reset element
|
||||
el = (tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null);
|
||||
}
|
||||
}
|
||||
|
||||
if (TOKEN_WEBAPP.equals(el))
|
||||
{
|
||||
@@ -174,7 +174,6 @@ public abstract class BaseRemoteStore extends AbstractWebScript
|
||||
|
||||
// reset element
|
||||
el = (tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null);
|
||||
|
||||
}
|
||||
|
||||
while (el != null)
|
||||
@@ -268,11 +267,15 @@ public abstract class BaseRemoteStore extends AbstractWebScript
|
||||
|
||||
case CREATE:
|
||||
validatePath(path);
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("CREATE: content length=" + httpReq.getContentLength());
|
||||
createDocument(res, store, path, httpReq.getInputStream());
|
||||
break;
|
||||
|
||||
case UPDATE:
|
||||
validatePath(path);
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("CREATE: content length=" + httpReq.getContentLength());
|
||||
updateDocument(res, store, path, httpReq.getInputStream());
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user