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

Views force numeric strings to be intergers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.1-beta
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      When using a view that reads a string that starts with an integer: ie date:
      2012-07-30T03:26:12+00:00

      From the client you are unable to request a startkey by year as it is sent as an integer in the URL request
      query.setRangeStart("2000");

      This will be translated as:
      startkey=2000

      But the request needs to be startkey="2000" for the comparison to work against a stored string.

      This also causes requests for query.setRangeStart("0000"); to fail as 0000 is not a valid number.

      The client should allow the developer to pick which JSON type they want to send.

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

        Activity

        Hide
        TimSmith Tim Smith (Inactive) added a comment -

        This is a duplicate of JCBC-41 .

        Show
        TimSmith Tim Smith (Inactive) added a comment - This is a duplicate of JCBC-41 .
        Hide
        daschl Michael Nitschinger added a comment -

        I'll close this because it is tracked through JCBC-41.

        Show
        daschl Michael Nitschinger added a comment - I'll close this because it is tracked through JCBC-41 .

          People

          • Assignee:
            ingenthr Matt Ingenthron
            Reporter:
            james.mauss James Mauss
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes