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

LCB_ERR_INVALID_ARGUMENT for all cluster HTTP requests when underscore in hostname

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • 1

    Description

      https://issues.couchbase.com/browse/CC-37

      https://forums.couchbase.com/t/trouble-querying-but-can-get-documents/30419

       

      The error comes from https://github.com/couchbase/libcouchbase/blob/0cddb2cdaf3a8004b72f063bc051dc4a9b604f6a/src/http/http.cc#L475-L477

      This code snippet fails

      std::string host = "https://yihyl6h_6wb3iarn.0ytsozyq2p9rg6ah.cloud.couchbase.com:18093/query/service/";
      struct http_parser_url url_info {
      };
      auto rc = _lcb_http_parser_parse_url(host.data(), host.size(), 0, &url_info);
      ASSERT_EQ(0, rc);

      Remove the _ in the hostname and it passes

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            jake.rawsthorne Jake Rawsthorne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty