mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-1071 (Impossible to create folder after upgrade: Access Denied)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@56727 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -47,6 +47,7 @@ import org.alfresco.service.namespace.NamespaceService;
|
|||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||||
import org.alfresco.util.ParameterCheck;
|
import org.alfresco.util.ParameterCheck;
|
||||||
|
import org.alfresco.util.PropertyMap;
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.ApplicationContextAware;
|
import org.springframework.context.ApplicationContextAware;
|
||||||
@@ -300,7 +301,7 @@ public class RecordsManagementServiceImpl extends ServiceBaseImpl
|
|||||||
*/
|
*/
|
||||||
public void onChangeToAnyRmProperty(final NodeRef node, final Map<QName, Serializable> oldProps, final Map<QName, Serializable> newProps)
|
public void onChangeToAnyRmProperty(final NodeRef node, final Map<QName, Serializable> oldProps, final Map<QName, Serializable> newProps)
|
||||||
{
|
{
|
||||||
serviceRegistry.getFilePlanAuthenticationService().runAsRmAdmin(new RunAsWork<Void>()
|
AuthenticationUtil.runAs(new RunAsWork<Void>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public Void doWork() throws Exception
|
public Void doWork() throws Exception
|
||||||
@@ -311,7 +312,8 @@ public class RecordsManagementServiceImpl extends ServiceBaseImpl
|
|||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}});
|
}
|
||||||
|
}, AuthenticationUtil.getAdminUserName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -831,8 +833,8 @@ public class RecordsManagementServiceImpl extends ServiceBaseImpl
|
|||||||
{
|
{
|
||||||
List<NodeRef> result = new ArrayList<NodeRef>();
|
List<NodeRef> result = new ArrayList<NodeRef>();
|
||||||
|
|
||||||
Set<QName> changedProps = determineChangedProps(oldProps, newProps);
|
Map<QName, Serializable> changedProps = PropertyMap.getChangedProperties(oldProps, newProps);
|
||||||
for (QName propQName : changedProps)
|
for (QName propQName : changedProps.keySet())
|
||||||
{
|
{
|
||||||
QName prefixedQName = propQName.getPrefixedQName(serviceRegistry.getNamespaceService());
|
QName prefixedQName = propQName.getPrefixedQName(serviceRegistry.getNamespaceService());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user