Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

63903: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (4.3.0.BF)
      63817: Merged DEV to V4.2-BUG-FIX (4.2.2)
         63504 : MNT-10687 : Cannot appendContentStream to PWC
            - Remove ALF-20118 fix
         63648 : MNT-10687 : Cannot appendContentStream to PWC
            - Test appending content to PWC using CMIS 1.1


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64332 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-03-14 17:05:52 +00:00
parent a201257a29
commit 2e3e975c4e

View File

@@ -1370,16 +1370,8 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
}
checkRepositoryId(repositoryId);
// 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");
CMISNodeInfo info = getOrCreateNodeInfo(objectId.getValue(), "Object");
NodeRef nodeRef = info.getNodeRef();
if (((DocumentTypeDefinition) info.getType().getTypeDefinition(false)).getContentStreamAllowed() == ContentStreamAllowed.NOTALLOWED)