Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)

94375: Merged DEV (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
      94337: SHA-52: Downloading file via Quick-Share link does not keep international characters in file names
      Fixed QuickShareContentGet webscript to use correct name for downloaded files.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-01-31 15:39:40 +00:00
parent d47f8618ad
commit 5629ef1754
2 changed files with 7 additions and 6 deletions

View File

@@ -136,10 +136,10 @@ public class ContentGet extends StreamContent implements ServletContextAware
}
// Stream the content
streamContentLocal(req, res, nodeRef, attach, propertyQName);
streamContentLocal(req, res, nodeRef, attach, propertyQName, null);
}
private void streamContentLocal(WebScriptRequest req, WebScriptResponse res, NodeRef nodeRef, boolean attach, QName propertyQName) throws IOException
protected void streamContentLocal(WebScriptRequest req, WebScriptResponse res, NodeRef nodeRef, boolean attach, QName propertyQName, Map<String, Object> model) throws IOException
{
String userAgent = req.getHeader("User-Agent");
userAgent = userAgent != null ? userAgent.toLowerCase() : "";
@@ -160,11 +160,11 @@ public class ContentGet extends StreamContent implements ServletContextAware
}
}
streamContent(req, res, nodeRef, propertyQName, attach, name, null);
streamContent(req, res, nodeRef, propertyQName, attach, name, model);
}
else
{
streamContent(req, res, nodeRef, propertyQName, attach, null, null);
streamContent(req, res, nodeRef, propertyQName, attach, null, model);
}
}
}