mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-500: SOLR: "No items" message after complete Transfer action
* filtered non-existant node from search results git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@42602 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -520,29 +520,36 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
|
||||
// All permission checks must pass
|
||||
inclusionMask.set(i, true);
|
||||
|
||||
int parentCheckRead = checkRead(returnedObject.getChildAssocRef(i).getParentRef());
|
||||
int childCheckRead = checkRead(returnedObject.getNodeRef(i));
|
||||
|
||||
for (ConfigAttributeDefintion cad : supportedDefinitions)
|
||||
if (nodeService.exists(returnedObject.getNodeRef(i)) == false)
|
||||
{
|
||||
NodeRef testNodeRef = returnedObject.getNodeRef(i);
|
||||
int checkRead = childCheckRead;
|
||||
if (cad.parent)
|
||||
{
|
||||
testNodeRef = returnedObject.getChildAssocRef(i).getParentRef();
|
||||
checkRead = parentCheckRead;
|
||||
}
|
||||
|
||||
if (isUnfiltered(testNodeRef))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (inclusionMask.get(i) && (testNodeRef != null) && (checkRead != AccessDecisionVoter.ACCESS_GRANTED))
|
||||
{
|
||||
inclusionMask.set(i, false);
|
||||
}
|
||||
inclusionMask.set(i, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
int parentCheckRead = checkRead(returnedObject.getChildAssocRef(i).getParentRef());
|
||||
int childCheckRead = checkRead(returnedObject.getNodeRef(i));
|
||||
|
||||
for (ConfigAttributeDefintion cad : supportedDefinitions)
|
||||
{
|
||||
NodeRef testNodeRef = returnedObject.getNodeRef(i);
|
||||
int checkRead = childCheckRead;
|
||||
if (cad.parent)
|
||||
{
|
||||
testNodeRef = returnedObject.getChildAssocRef(i).getParentRef();
|
||||
checkRead = parentCheckRead;
|
||||
}
|
||||
|
||||
if (isUnfiltered(testNodeRef))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (inclusionMask.get(i) && (testNodeRef != null) && (checkRead != AccessDecisionVoter.ACCESS_GRANTED))
|
||||
{
|
||||
inclusionMask.set(i, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Bug out if we are limiting by size
|
||||
|
Reference in New Issue
Block a user