Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-340

Failed to parse connection string that starts with number greater than 255

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.3.0
    • None
    • None
    • None
    • 1

    Description

      irb(main):012:0> Couchbase::Backend.parse_connection_string("couchbases://255test.com")
      => {:scheme=>"couchbases", :tls=>true, :nodes=>[{:address=>"255test.com", :type=>:dns}], :params=>{}, :default_port=>11207, :default_mode=>:gcccp}
      

      irb(main):013:0> Couchbase::Backend.parse_connection_string("couchbases://256test.com")
      => {:scheme=>"couchbases", :tls=>true, :nodes=>[], :params=>{}, :default_port=>11207, :default_mode=>:gcccp, :error=>"failed to parse connection string (column: 16, trailer: \"6test.com\")"}
      

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            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