Resolve ALF-5130, ALF-5144, ALF-5148

- ALF-5130 NPE from Web Services deleteTree()		
- ALF-5144 Create document via CMIS web services throws exception if mime type is not specified
- ALF-5148 ApplyACL does not accept repositorydetermined ACLPropagation value

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-10-08 13:38:06 +00:00
parent 7e774609a8
commit 8014b4dadd

View File

@@ -184,7 +184,7 @@ public class CMISAccessControlServiceImpl implements CMISAccessControlService
public CMISAccessControlReport applyAcl(NodeRef nodeRef, List<CMISAccessControlEntry> acesToRemove, List<CMISAccessControlEntry> acesToAdd, CMISAclPropagationEnum propagation, public CMISAccessControlReport applyAcl(NodeRef nodeRef, List<CMISAccessControlEntry> acesToRemove, List<CMISAccessControlEntry> acesToAdd, CMISAclPropagationEnum propagation,
CMISAccessControlFormatEnum format) throws CMISConstraintException CMISAccessControlFormatEnum format) throws CMISConstraintException
{ {
if (propagation != CMISAclPropagationEnum.PROPAGATE) if (propagation == CMISAclPropagationEnum.OBJECT_ONLY)
{ {
throw new CMISConstraintException("Unsupported ACL propagation mode: " + propagation); throw new CMISConstraintException("Unsupported ACL propagation mode: " + propagation);
} }