Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-96

POST/PUT requests not properly being appended to the buffer

    Details

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

      Description

      From tcpdump:

      PUT /default/_design/lcb_design_doc HTTP/1.1
      User-Agent: libcouchbase/1.1.0dp9
      Accept: application/json
      Host: 10.3.121.209:8092
      Co{ "id" : "_design/lcb_design_doc", "language" : "javascript", "views" : { "lcb-test-view" : "function(doc) { if (doc.testid == 'lcb')

      { emit(doc.id) }

      } " } }

      • Content-Length gets truncated and replaced with the POST data.
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        what is the side effect of this bug ? does it impact view creation ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - what is the side effect of this bug ? does it impact view creation ?
        Hide
        mnunberg Mark Nunberg added a comment -

        Yes, both view creation and bucket management

        Show
        mnunberg Mark Nunberg added a comment - Yes, both view creation and bucket management
        Hide
        avsej Sergey Avseyev added a comment -

        http://review.couchbase.org/20496

        Strange, because I managed to create design documents using my ruby API which is using this function.

        Show
        avsej Sergey Avseyev added a comment - http://review.couchbase.org/20496 Strange, because I managed to create design documents using my ruby API which is using this function.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Serget/Matt,

        will there be a 1.1.0dpx release that we can include this fix ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - Serget/Matt, will there be a 1.1.0dpx release that we can include this fix ?
        Hide
        mnunberg Mark Nunberg added a comment - - edited
        Show
        mnunberg Mark Nunberg added a comment - - edited http://review.couchbase.org/#/c/20496/1
        Hide
        avsej Sergey Avseyev added a comment -

        Farshid, we are going to release libcouchbase 2.0.0 because of API changes

        Show
        avsej Sergey Avseyev added a comment - Farshid, we are going to release libcouchbase 2.0.0 because of API changes

          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