Fix for ACE-3501 Solr4 indexing on TSTEST: Cannot query for more than 512 ACL ChangeSets.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@90557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2014-11-17 13:37:10 +00:00
parent 88eb6abecc
commit 6b72230f0a
2 changed files with 4 additions and 4 deletions

View File

@@ -91,11 +91,11 @@ public class AclsGet extends DeclarativeWebScript
Status.STATUS_BAD_REQUEST,
"Parameter 'aclChangeSetIds' not provided in request content.");
}
else if (aclChangeSetIdsJSON.length() == 0 || aclChangeSetIdsJSON.length() > 512)
else if (aclChangeSetIdsJSON.length() == 0)
{
throw new WebScriptException(
Status.STATUS_BAD_REQUEST,
"Parameter 'aclChangeSetIds' must hold from 1 to 512 IDs.");
"Parameter 'aclChangeSetIds' must hold from 1 or more IDs.");
}
aclChangeSetIds = new ArrayList<Long>(aclChangeSetIdsJSON.length());
for (int i = 0; i < aclChangeSetIdsJSON.length(); i++)

View File

@@ -91,11 +91,11 @@ public class AclsReadersGet extends DeclarativeWebScript
Status.STATUS_BAD_REQUEST,
"Parameter 'aclIds' not provided in request content.");
}
else if (aclIdsJSON.length() == 0 || aclIdsJSON.length() > 512)
else if (aclIdsJSON.length() == 0)
{
throw new WebScriptException(
Status.STATUS_BAD_REQUEST,
"Parameter 'aclIds' must hold from 1 to 512 IDs.");
"Parameter 'aclIds' must hold from 1 or more IDs.");
}
aclIds = new ArrayList<Long>(aclIdsJSON.length());
for (int i = 0; i < aclIdsJSON.length(); i++)