Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-66

PaginateQuery returns empty results when applying key filter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1dp
    • Fix Version/s: 1.1-beta
    • Component/s: Core
    • Security Level: Public
    • Environment:
      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))

      { query.setEndkeyDocID(((String)args.get(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.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        vamsu vamsi Guntuku created issue -
        rags Raghavan Srinivas (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1beta [ 10370 ]
        Resolution Fixed [ 1 ]
        rags Raghavan Srinivas (Inactive) made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Raghavan Srinivas [ rags ] Matt Ingenthron [ ingenthr ]
        daschl Michael Nitschinger made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Assignee Matt Ingenthron [ ingenthr ] Michael Nitschinger [ daschl ]
        Resolution Fixed [ 1 ]
        daschl Michael Nitschinger made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        ingenthr Matt Ingenthron made changes -
        Workflow jira [ 17897 ] Couchbase SDK Workflow [ 38348 ]

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            vamsu vamsi Guntuku
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Gerrit Reviews

                There are no open Gerrit changes