Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.1dp
-
Security Level: Public
-
Java Client library 1.1DP
Description
If the Query object has the "key" argument set then paginateQuery is returns empty results. It is is because of the below bug in copy() method in the Query class
public Query copy() {
Query query = new Query();
........
if (args.containsKey(KEY))
.......
}
If you look the above code it is setting setEndkeyDocID() instead of setKey(). Can this be fixed asap instead of we trying to override the functionality, please?
Remember that the view can have duplicates so it is still applicable to have filters when we use paginateQuery.