Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1754

Certificate paths with unescaped slashes cannot be specified in URI

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.9.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      A URI in which option values do not have paths:

      irb(main):007:0> Mongo::URI.new("mongodb://localhost:27017/a?tls=true")
      => #<Mongo::URI:0x000055cb966693f8 @string="mongodb://localhost:27017/a?tls=true", @options={}, @servers=["localhost:27017"], @user=nil, @password=nil, @uri_options={"ssl"=>true}, @database="a">
      

      A URI in which option values have paths:

      irb(main):008:0> Mongo::URI.new("mongodb://localhost:27017/a?tls=true&tlsCAFile=/path/to/file")
      => #<Mongo::URI:0x000055cb966924d8 @string="mongodb://localhost:27017/a?tls=true&tlsCAFile=/path/to/file", @options={}, @servers=["localhost:27017/a?tls=true&tlsCAFile=/path/to"], @user=nil, @password=nil, @uri_options={}, @database="file">
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: