RM-880: Cannot upload file into RM site over FTP/NFS file protocols

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@56012 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-09-26 05:55:51 +00:00
parent 77a9b6b8d2
commit 5b709487c9

View File

@@ -362,7 +362,7 @@ public class RecordServiceImpl implements RecordService,
policyComponent.bindClassBehaviour( policyComponent.bindClassBehaviour(
NodeServicePolicies.OnRemoveAspectPolicy.QNAME, NodeServicePolicies.OnRemoveAspectPolicy.QNAME,
ContentModel.ASPECT_NO_CONTENT, ContentModel.ASPECT_NO_CONTENT,
new JavaBehaviour(this, "onRemoveAspect", NotificationFrequency.EVERY_EVENT)); new JavaBehaviour(this, "onRemoveAspect", NotificationFrequency.TRANSACTION_COMMIT));
} }
/** /**
@@ -451,6 +451,9 @@ public class RecordServiceImpl implements RecordService,
{ {
@Override @Override
public Void doWork() throws Exception public Void doWork() throws Exception
{
onCreateChildAssociation.disable();
try
{ {
NodeRef nodeRef = childAssocRef.getChildRef(); NodeRef nodeRef = childAssocRef.getChildRef();
if (nodeService.exists(nodeRef) == true && if (nodeService.exists(nodeRef) == true &&
@@ -470,6 +473,11 @@ public class RecordServiceImpl implements RecordService,
file(nodeRef); file(nodeRef);
} }
} }
}
finally
{
onCreateChildAssociation.enable();
}
return null; return null;
} }