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

Invalid read preference modes in URI options are ignored with no warnings/errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.10.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      # valid
      irb(main):023:0> Mongo::URI.new('mongodb://test.host/?readPreference=primary').uri_options[:read]
      => {"mode"=>:primary}
      
      # invalid
      irb(main):022:0> Mongo::URI.new('mongodb://test.host/?readPreference=123').uri_options[:read]
      => {"mode"=>nil}
      

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

              Created:
              Updated:
              Resolved: