mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -91,11 +91,11 @@ public class AclsGet extends DeclarativeWebScript
|
|||||||
Status.STATUS_BAD_REQUEST,
|
Status.STATUS_BAD_REQUEST,
|
||||||
"Parameter 'aclChangeSetIds' not provided in request content.");
|
"Parameter 'aclChangeSetIds' not provided in request content.");
|
||||||
}
|
}
|
||||||
else if (aclChangeSetIdsJSON.length() == 0 || aclChangeSetIdsJSON.length() > 512)
|
else if (aclChangeSetIdsJSON.length() == 0)
|
||||||
{
|
{
|
||||||
throw new WebScriptException(
|
throw new WebScriptException(
|
||||||
Status.STATUS_BAD_REQUEST,
|
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());
|
aclChangeSetIds = new ArrayList<Long>(aclChangeSetIdsJSON.length());
|
||||||
for (int i = 0; i < aclChangeSetIdsJSON.length(); i++)
|
for (int i = 0; i < aclChangeSetIdsJSON.length(); i++)
|
||||||
|
@@ -91,11 +91,11 @@ public class AclsReadersGet extends DeclarativeWebScript
|
|||||||
Status.STATUS_BAD_REQUEST,
|
Status.STATUS_BAD_REQUEST,
|
||||||
"Parameter 'aclIds' not provided in request content.");
|
"Parameter 'aclIds' not provided in request content.");
|
||||||
}
|
}
|
||||||
else if (aclIdsJSON.length() == 0 || aclIdsJSON.length() > 512)
|
else if (aclIdsJSON.length() == 0)
|
||||||
{
|
{
|
||||||
throw new WebScriptException(
|
throw new WebScriptException(
|
||||||
Status.STATUS_BAD_REQUEST,
|
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());
|
aclIds = new ArrayList<Long>(aclIdsJSON.length());
|
||||||
for (int i = 0; i < aclIdsJSON.length(); i++)
|
for (int i = 0; i < aclIdsJSON.length(); i++)
|
||||||
|
Reference in New Issue
Block a user