mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Workaround for ALF-11140
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31720 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2672,6 +2672,14 @@ public class AlfrescoCmisService extends AbstractCmisService
|
|||||||
{
|
{
|
||||||
CMISNodeInfo nodeInfo = getOrCreateNodeInfo(objectId);
|
CMISNodeInfo nodeInfo = getOrCreateNodeInfo(objectId);
|
||||||
|
|
||||||
|
if (nodeInfo.getObjectVariant() == CMISObjectVariant.INVALID_ID
|
||||||
|
|| nodeInfo.getObjectVariant() == CMISObjectVariant.NOT_EXISTING
|
||||||
|
|| nodeInfo.getObjectVariant() == CMISObjectVariant.NOT_A_CMIS_OBJECT
|
||||||
|
|| nodeInfo.getObjectVariant() == CMISObjectVariant.PERMISSION_DENIED)
|
||||||
|
{
|
||||||
|
info = null;
|
||||||
|
} else
|
||||||
|
{
|
||||||
// object info has not been found -> create one
|
// object info has not been found -> create one
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -2697,6 +2705,8 @@ public class AlfrescoCmisService extends AbstractCmisService
|
|||||||
info = null;
|
info = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -282,6 +282,12 @@ public class CMISNodeInfoImpl implements CMISNodeInfo
|
|||||||
if (connector.getCheckOutCheckInService().isWorkingCopy(nodeRef))
|
if (connector.getCheckOutCheckInService().isWorkingCopy(nodeRef))
|
||||||
{
|
{
|
||||||
NodeRef checkedOut = connector.getCheckOutCheckInService().getCheckedOut(nodeRef);
|
NodeRef checkedOut = connector.getCheckOutCheckInService().getCheckedOut(nodeRef);
|
||||||
|
if (checkedOut == null)
|
||||||
|
{
|
||||||
|
// catch a rare audit case
|
||||||
|
checkedOut = nodeRef;
|
||||||
|
}
|
||||||
|
|
||||||
objecVariant = CMISObjectVariant.PWC;
|
objecVariant = CMISObjectVariant.PWC;
|
||||||
objectId = checkedOut.toString() + CMISConnector.ID_SEPERATOR + CMISConnector.PWC_VERSION_LABEL;
|
objectId = checkedOut.toString() + CMISConnector.ID_SEPERATOR + CMISConnector.PWC_VERSION_LABEL;
|
||||||
versionLabel = CMISConnector.PWC_VERSION_LABEL;
|
versionLabel = CMISConnector.PWC_VERSION_LABEL;
|
||||||
|
Reference in New Issue
Block a user