Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.0-dp1, 1.1.0-dp2
    • Fix Version/s: 1.1.0-dp4
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      View parameters are encoded as JSON body content, and issued as POST requests, rather than as GET, and encoded as part of the URI.

      In order to pass parameters, you need to append them to the view name..

      This is somewhat broken in libcouchbase 1.0.x and entirely broken in 2.x

      1. php.c
        5 kB
        Mark Nunberg
      2. ViewObject.php
        0.6 kB
        Mark Nunberg
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        mnunberg Mark Nunberg added a comment -

        As a clarification of the above bug

        couchbase_view($handle, $doc_name, $design_name, array('stale' => 'false', ...));

        Will not actually honor those parameters. Instead they are encoded as JSON and placed as the request body in a POST request..

        Trying to refactor the code (which should look something like I attached here) isn't working either.. (Getting weird issues).. since valgrind sucks on the mac, I'll need to wait until I get to my linux box..

        Show
        mnunberg Mark Nunberg added a comment - As a clarification of the above bug couchbase_view($handle, $doc_name, $design_name, array('stale' => 'false', ...)); Will not actually honor those parameters. Instead they are encoded as JSON and placed as the request body in a POST request.. Trying to refactor the code (which should look something like I attached here) isn't working either.. (Getting weird issues).. since valgrind sucks on the mac, I'll need to wait until I get to my linux box..
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        blocker for testing php sdk view functionality.

        we should include this fix on for the next php sdk release.

        Show
        farshid Farshid Ghods (Inactive) added a comment - blocker for testing php sdk view functionality. we should include this fix on for the next php sdk release.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Matt,

        I spoke with Mark about assigning the fixVersion to this bug , maybe 1.1.0-dp4 ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - Matt, I spoke with Mark about assigning the fixVersion to this bug , maybe 1.1.0-dp4 ?
        Show
        mnunberg Mark Nunberg added a comment - http://review.couchbase.org/#/c/20673/
        Hide
        mnunberg Mark Nunberg added a comment -

        I am also working on a nice wrapper interface for views. If anyone wants to have a look and/or comment on the API..:

        Sample usage attached

        Show
        mnunberg Mark Nunberg added a comment - I am also working on a nice wrapper interface for views. If anyone wants to have a look and/or comment on the API..: Sample usage attached

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes