Certificate paths with unescaped slashes cannot be specified in URI

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.9.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: