mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix for ALF-16785 CMIS 0.8 TCK - acl propagation test fails
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43607 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1129,7 +1129,7 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
final Acl addAces, final Acl removeAces, ExtensionsData extension)
|
final Acl addAces, final Acl removeAces, ExtensionsData extension)
|
||||||
{
|
{
|
||||||
checkRepositoryId(repositoryId);
|
checkRepositoryId(repositoryId);
|
||||||
|
|
||||||
// get the parent folder node ref
|
// get the parent folder node ref
|
||||||
final CMISNodeInfo parentInfo = getOrCreateFolderInfo(folderId, "Parent folder");
|
final CMISNodeInfo parentInfo = getOrCreateFolderInfo(folderId, "Parent folder");
|
||||||
|
|
||||||
@@ -1163,6 +1163,7 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// copy stream to temp file
|
// copy stream to temp file
|
||||||
|
// OpenCMIS does this for us ....
|
||||||
final File tempFile = copyToTempFile(contentStream);
|
final File tempFile = copyToTempFile(contentStream);
|
||||||
final Charset encoding = (tempFile == null ? null : getEncoding(tempFile, contentStream.getMimeType()));
|
final Charset encoding = (tempFile == null ? null : getEncoding(tempFile, contentStream.getMimeType()));
|
||||||
|
|
||||||
@@ -2281,10 +2282,7 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
{
|
{
|
||||||
checkRepositoryId(repositoryId);
|
checkRepositoryId(repositoryId);
|
||||||
|
|
||||||
if (aclPropagation == AclPropagation.OBJECTONLY)
|
// We are spec compliant if we just let it through and the tck will not fail
|
||||||
{
|
|
||||||
throw new CmisInvalidArgumentException("ACL propagation 'objectonly' is not supported!");
|
|
||||||
}
|
|
||||||
|
|
||||||
CMISNodeInfo info = getOrCreateNodeInfo(objectId, "Object");
|
CMISNodeInfo info = getOrCreateNodeInfo(objectId, "Object");
|
||||||
|
|
||||||
@@ -2307,10 +2305,7 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
{
|
{
|
||||||
checkRepositoryId(repositoryId);
|
checkRepositoryId(repositoryId);
|
||||||
|
|
||||||
if (aclPropagation == AclPropagation.OBJECTONLY)
|
// We are spec compliant if we just let it through and the tck will not fail
|
||||||
{
|
|
||||||
throw new CmisInvalidArgumentException("ACL propagation 'objectonly' is not supported!");
|
|
||||||
}
|
|
||||||
|
|
||||||
CMISNodeInfo info = getOrCreateNodeInfo(objectId, "Object");
|
CMISNodeInfo info = getOrCreateNodeInfo(objectId, "Object");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user