From 646dd196afe5cee1fab946f7697a2fe57feda632 Mon Sep 17 00:00:00 2001 From: Brian Remmington Date: Thu, 22 Sep 2011 16:41:39 +0000 Subject: [PATCH] ALF-10402: PUB: Access tokens are not being stored in encrypted properties - Corrected a previously missed a path through the code (used by SlideShare) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/repo/publishing/ChannelServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/publishing/ChannelServiceImpl.java b/source/java/org/alfresco/repo/publishing/ChannelServiceImpl.java index c64d49e547..a52baebcc8 100644 --- a/source/java/org/alfresco/repo/publishing/ChannelServiceImpl.java +++ b/source/java/org/alfresco/repo/publishing/ChannelServiceImpl.java @@ -281,9 +281,10 @@ public class ChannelServiceImpl implements ChannelService */ public void updateChannel(Channel channel, Map properties) { - HashMap actualProps = new HashMap(properties); + Map actualProps = new HashMap(properties); actualProps.remove(ContentModel.PROP_NODE_UUID); NodeRef editorialNode = new NodeRef(channel.getId()); + actualProps = encryptor.encrypt(actualProps); for (Map.Entry entry : actualProps.entrySet()) { nodeService.setProperty(editorialNode, entry.getKey(), entry.getValue());