mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +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:
@@ -216,11 +216,6 @@ public class SOLRAPIClient
|
|||||||
*/
|
*/
|
||||||
public List<Acl> getAcls(List<AclChangeSet> aclChangeSets, Long minAclId, int maxResults) throws AuthenticationException, IOException, JSONException
|
public List<Acl> getAcls(List<AclChangeSet> aclChangeSets, Long minAclId, int maxResults) throws AuthenticationException, IOException, JSONException
|
||||||
{
|
{
|
||||||
if (aclChangeSets.size() > 512)
|
|
||||||
{
|
|
||||||
throw new IllegalArgumentException("Cannot query for more than 512 ACL ChangeSets.");
|
|
||||||
}
|
|
||||||
|
|
||||||
StringBuilder url = new StringBuilder(GET_ACLS);
|
StringBuilder url = new StringBuilder(GET_ACLS);
|
||||||
StringBuilder args = new StringBuilder();
|
StringBuilder args = new StringBuilder();
|
||||||
if (minAclId != null)
|
if (minAclId != null)
|
||||||
@@ -296,11 +291,6 @@ public class SOLRAPIClient
|
|||||||
*/
|
*/
|
||||||
public List<AclReaders> getAclReaders(List<Acl> acls) throws AuthenticationException, IOException, JSONException
|
public List<AclReaders> getAclReaders(List<Acl> acls) throws AuthenticationException, IOException, JSONException
|
||||||
{
|
{
|
||||||
if (acls.size() > 512)
|
|
||||||
{
|
|
||||||
throw new IllegalArgumentException("Cannot query for more than 512 ACLs.");
|
|
||||||
}
|
|
||||||
|
|
||||||
StringBuilder url = new StringBuilder(GET_ACLS_READERS);
|
StringBuilder url = new StringBuilder(GET_ACLS_READERS);
|
||||||
|
|
||||||
JSONObject jsonReq = new JSONObject();
|
JSONObject jsonReq = new JSONObject();
|
||||||
|
Reference in New Issue
Block a user