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

JSON REST APIs return LCB_SUCCESS with corrupt data

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.6, 2.5.0, 2.6.2
    • 2.6.3
    • library
    • None

    Description

      When performing N1QL/FTS, some case causes libcouchbase to indicate LCB_SUCCESS, but the meta-data returned is corrupted and not actually parseable as JSON. Originally it was thought that this could be a bug in the Node.js SDK, but the fact that libcouchbase has to parse the response to find the meta, but then returns LCB_SUCCESS with corrupt JSON indicates this is likely not the case.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            This is caused when the response meets two conditions:

            1. The response has no rows
            2. The response is delivered in multiple parts

            This indeed affects N1QL, views, and FTS

            mnunberg Mark Nunberg (Inactive) added a comment - This is caused when the response meets two conditions: 1. The response has no rows 2. The response is delivered in multiple parts This indeed affects N1QL, views, and FTS

            People

              mnunberg Mark Nunberg (Inactive)
              brett19 Brett Lawson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty