Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      A view has been created and it's being queried properly, but the compound keys seem to be getting quoted.

      Is there a workaround for this approach? Is something like the ComplexKey class used in Java needed here in PHP?

      A basic investigation shows:
      GET /default/design/debug/_view/user2hour?startkey=%22%5C%22%5Buser_event%5D%5C%22%22&endkey=%22%5C%22%5Buser_event_%5D%5C%22%22&group=true << doesn't work
      GET /default/design/debug/_view/user2hour?startkey=%5B%22user_event%22%5D&endkey=%5B%22user_event_%22%5D&group=true HTTP/1.1 << works

      So it seems it's extra quoting that's going on.

      See also:
      http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api

      1. oleg.php
        2 kB
        Matt Ingenthron
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        There are no open Gerrit changes for this issue.

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes