Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1dp
    • Fix Version/s: 1.1dp2
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None
    • Environment:
      All.
      Tested on Ubuntu Server 12.04LTS, Oracle/Sun JDK 1.6.0_31

      Description

      The bug causes all query results are not as expected: in every case "key" argument is changed to "EndkeyDocID".

      My proposed patch:

      $
      diff --git a/src/main/java/com/couchbase/client/protocol/views/Query.java b/src/main/java/com/couchbase/client/protocol/views/Query.java
      index fca7ccf..3a019a0 100644
      — a/src/main/java/com/couchbase/client/protocol/views/Query.java
      +++ b/src/main/java/com/couchbase/client/protocol/views/Query.java
      @@ -174,7 +174,7 @@ public class Query

      { query.setInclusiveEnd(((Boolean)args.get(INCLUSIVEEND)).booleanValue()); }

      if (args.containsKey(KEY))

      { - query.setEndkeyDocID(((String)args.get(KEY))); + query.setKey(((String)args.get(KEY))); }

      if (args.containsKey(LIMIT)) {
      query.setLimit(((Integer)args.get(LIMIT)).intValue());
      $

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+JCBC-68=message:JCBC-68

        Activity

        josemrecio Jose created issue -
        mikew Mike Wiederhold made changes -
        Field Original Value New Value
        Assignee Raghavan Srinivas [ rags ] Mike Wiederhold [ mikew ]
        mikew Mike Wiederhold made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        mikew Mike Wiederhold made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        mikew Mike Wiederhold made changes -
        Fix Version/s 1.1dp2 [ 10347 ]
        ingenthr Matt Ingenthron made changes -
        Workflow jira [ 18068 ] Couchbase SDK Workflow [ 38349 ]

          People

          • Assignee:
            mikew Mike Wiederhold
            Reporter:
            josemrecio Jose
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5m
              5m
              Remaining:
              Remaining Estimate - 5m
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Gerrit Reviews

                There are no open Gerrit changes