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

        ingenthr Matt Ingenthron created issue -
        Hide
        ingenthr Matt Ingenthron added a comment -

        I've assigned this to Michael, since he may have an idea how to approach the problem with a workaround.

        Michael, once you have an idea what it is, can you please reassign it to Trond for a proper fix?

        Show
        ingenthr Matt Ingenthron added a comment - I've assigned this to Michael, since he may have an idea how to approach the problem with a workaround. Michael, once you have an idea what it is, can you please reassign it to Trond for a proper fix?
        ingenthr Matt Ingenthron made changes -
        Field Original Value New Value
        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?

        See also:
        http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api
        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
        Hide
        mnunberg Mark Nunberg added a comment - - edited

        I've answered this on the forum post.. In summary, nothing is broken, but the API changed between DP versions.

        The API change is reversible by using an extra handle-level option (see the forum post)

        Show
        mnunberg Mark Nunberg added a comment - - edited I've answered this on the forum post.. In summary, nothing is broken, but the API changed between DP versions. The API change is reversible by using an extra handle-level option (see the forum post)
        Hide
        ingenthr Matt Ingenthron added a comment -

        Mark: thanks so much for helping to address that. I didn't pick up on the change.

        Show
        ingenthr Matt Ingenthron added a comment - Mark: thanks so much for helping to address that. I didn't pick up on the change.
        ingenthr Matt Ingenthron made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Michael Nitschinger [ daschl ] Mark Nunberg [ mnunberg ]
        Resolution Cannot Reproduce [ 5 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 23234 ] Couchbase SDK Workflow [ 44375 ]

          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