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

Views force numeric strings to be intergers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 1.1-beta
    • None
    • None
    • Security Level: Public
    • 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.

      Attachments

        For Gerrit Dashboard: JCBC-90
        # Subject Branch Project Status CR V

        Activity

          People

            ingenthr Matt Ingenthron
            james.mauss James Mauss (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty