Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (4.3/Cloud)

74254: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (5.0/Cloud)
      74153: Merged DEV to V4.2-BUG-FIX
       73664	: MNT-11667 : "createComment" method creates activity for users who are not supposed to see the file
       Added "nodeRef" for json activity data.
       74134 : MNT-11667 : "createComment" method creates activity for users who are not supposed to see the file
       Added unit test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Will Abson
2014-06-25 16:33:14 +00:00
parent 67ebe0412b
commit e9f9812165
2 changed files with 155 additions and 1 deletions

View File

@@ -267,7 +267,9 @@ public class CommentServiceImpl implements CommentService
{
StringBuilder sb = new StringBuilder("document-details?nodeRef=");
sb.append(URLEncoder.encode(nodeRef.toString(), "UTF-8"));
json.put("page", sb.toString());
json.put("page", sb.toString());
// MNT-11667 "createComment" method creates activity for users who are not supposed to see the file
json.put("nodeRef", nodeRef.toString());
}
catch (UnsupportedEncodingException e)
{