mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-20118 "appendContentStream causes VersionServiceException" workaround for bug in Chemistry OpenCMIS libraries means that objectId is not being returned from appendContentStream
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55922 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1309,7 +1309,15 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
|
|
||||||
checkRepositoryId(repositoryId);
|
checkRepositoryId(repositoryId);
|
||||||
|
|
||||||
CMISNodeInfo info = getOrCreateNodeInfo(objectId.getValue(), "Object");
|
// workaround for bug in OpenCMIS libraries
|
||||||
|
String nodeId = objectId.getValue();
|
||||||
|
int idx = nodeId.indexOf(";");
|
||||||
|
if(idx != -1)
|
||||||
|
{
|
||||||
|
nodeId = nodeId.substring(0, idx);
|
||||||
|
}
|
||||||
|
|
||||||
|
CMISNodeInfo info = getOrCreateNodeInfo(nodeId, "Object");
|
||||||
NodeRef nodeRef = info.getNodeRef();
|
NodeRef nodeRef = info.getNodeRef();
|
||||||
|
|
||||||
if (((DocumentTypeDefinition) info.getType().getTypeDefinition(false)).getContentStreamAllowed() == ContentStreamAllowed.NOTALLOWED)
|
if (((DocumentTypeDefinition) info.getType().getTypeDefinition(false)).getContentStreamAllowed() == ContentStreamAllowed.NOTALLOWED)
|
||||||
|
Reference in New Issue
Block a user