mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
ALF-10132: FSTR is not working
- Fixes some problems with progress tracking and reporting. Still needs some work. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30503 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -73,6 +73,11 @@ public class StatusCommandProcessor implements CommandProcessor
|
|||||||
{
|
{
|
||||||
TransferProgress progress = receiver.getProgressMonitor().getProgress(transferId);
|
TransferProgress progress = receiver.getProgressMonitor().getProgress(transferId);
|
||||||
|
|
||||||
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug(progress);
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject progressObject = new JSONObject();
|
JSONObject progressObject = new JSONObject();
|
||||||
progressObject.put("transferId", transferId);
|
progressObject.put("transferId", transferId);
|
||||||
progressObject.put("status", progress.getStatus().toString());
|
progressObject.put("status", progress.getStatus().toString());
|
||||||
@@ -92,8 +97,6 @@ public class StatusCommandProcessor implements CommandProcessor
|
|||||||
resp.setStatus(Status.STATUS_OK);
|
resp.setStatus(Status.STATUS_OK);
|
||||||
resp.getWriter().write(response);
|
resp.getWriter().write(response);
|
||||||
|
|
||||||
logger.debug("transfer started" + transferId);
|
|
||||||
|
|
||||||
return Status.STATUS_OK;
|
return Status.STATUS_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user