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

Special characters in user agent strings cause HTTP corruption

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0-alpha1
    • 2.9.5
    • library
    • None
    • 1

    Description

      Passing any special characters via DSN `client_string` parameter will cause HTTP headers to be incorrectly sized, and the generated request to be corrupted.  This appeared in Node.js v11, where the openSSL version contained a space and newline at the end.  I've included the specific client_string which caused the failure below:

      client_string=couchnode%2F2.6.0%20(node%2F11.0.0%3B%20v8%2F7.0.276.28-node.5%3B%20ssl%2F1.1.0i%20%0A)

      Attachments

        Issue Links

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

          Activity

            People

              avsej Sergey Avseyev
              brett19 Brett Lawson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty