Added a log for size

This commit is contained in:
francesco 2020-03-27 10:53:38 +01:00
parent 07044434fa
commit f182f5e6ca
1 changed files with 4 additions and 1 deletions

View File

@ -354,8 +354,11 @@ public class DownloadServlet extends HttpServlet{
resp.setHeader("Content-Disposition", contentDisposition+"; filename=\"" + itemName + "\"" ); resp.setHeader("Content-Disposition", contentDisposition+"; filename=\"" + itemName + "\"" );
//Fixing Incident: 18926, replacing workspaceFileItem.getSize() with ItemStreamDescriptor.getSize() //Fixing Incident: 18926, replacing workspaceFileItem.getSize() with ItemStreamDescriptor.getSize()
if(descr.getSize()!=null && descr.getSize()>0) if(descr.getSize()!=null && descr.getSize()>0) {
resp = setContentLength(resp, descr.getSize()); resp = setContentLength(resp, descr.getSize());
}
logger.info("The size is: "+descr.getSize());
//MODIFIED 22-05-2013 CLOSE STREAM //MODIFIED 22-05-2013 CLOSE STREAM
OutputStream out = resp.getOutputStream(); OutputStream out = resp.getOutputStream();