[JCBC-66] PaginateQuery returns empty results when applying key filter Created: 16/Jun/12  Updated: 03/Oct/12  Resolved: 03/Oct/12

Status: Closed
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: 1.1dp
Fix Version/s: 1.1-beta
Security Level: Public

Type: Bug Priority: Major
Reporter: vamsi Guntuku Assignee: Michael Nitschinger
Resolution: Fixed Votes: 0
Labels: 2.0-dev-preview-4-release-notes
Remaining Estimate: 1h
Time Spent: Not Specified
Original Estimate: 1h
Environment: Java Client library 1.1DP

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.

Comment by Michael Nitschinger [ 03/Oct/12 ]
This has already been fixed on master!


If you are still seeing this issue, please reopen the ticket and I'll look into it again!
Comment by Michael Nitschinger [ 03/Oct/12 ]
Already fixed in the master branch.
Generated at Wed Nov 26 18:27:43 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.