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

PaginateQuery returns empty results when applying key filter

    XMLWordPrintable

Details

    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.

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            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

                  PagerDuty