mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-204: DocValuesCache throws ArrayStoreException when long values are added
This commit is contained in:
-1
@@ -118,7 +118,6 @@ public class DocValuesCache
|
||||
public LongValues(int[] ivalues)
|
||||
{
|
||||
values = new long[ivalues.length];
|
||||
//TODO: Validate to you can copy an int[] into a long[].
|
||||
for(int i=0; i< ivalues.length; i++) {
|
||||
values[i] = ivalues[i];
|
||||
}
|
||||
|
||||
+11
@@ -240,6 +240,17 @@ public class AlfrescoSolrUtils
|
||||
Acl acl = new Acl(aclChangeSet.getId(), generateId());
|
||||
return acl;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param aclChangeSet
|
||||
* @return
|
||||
*/
|
||||
public static Acl getAcl(AclChangeSet aclChangeSet, long aclId)
|
||||
{
|
||||
Acl acl = new Acl(aclChangeSet.getId(), aclId);
|
||||
return acl;
|
||||
}
|
||||
/**
|
||||
* Get an AclChangeSet
|
||||
* @param aclCount
|
||||
|
||||
+1
-2
@@ -102,7 +102,7 @@ public class AlfrescoSolrTrackerTest extends AbstractAlfrescoSolrTests
|
||||
AclChangeSet aclChangeSet = getAclChangeSet(1);
|
||||
|
||||
Acl acl = getAcl(aclChangeSet);
|
||||
Acl acl2 = getAcl(aclChangeSet);
|
||||
Acl acl2 = getAcl(aclChangeSet, Long.MAX_VALUE-10); // Test with long value
|
||||
|
||||
|
||||
AclReaders aclReaders = getAclReaders(aclChangeSet, acl, list("joel"), list("phil"), null);
|
||||
@@ -408,6 +408,5 @@ public class AlfrescoSolrTrackerTest extends AbstractAlfrescoSolrTests
|
||||
//And the error node should be present
|
||||
waitForDocCount(new TermQuery(new Term("content@s___t@{http://www.alfresco.org/model/content/1.0}content", Long.toString(errorNode.getId()))), 1, MAX_WAIT_TIME);
|
||||
logger.info("#################### Passed Nineteenth Test ##############################");
|
||||
//assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user