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

Mongo::UriParser downcases all the query parameters

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.1
    • Affects Version/s: 1.10.0
    • Component/s: None
    • None

      This line of code makes it impossible to use Mongo::URIParser to connect to a replica set with mixed case names.

      For example mongodb://admin:password@hostname:27017/admin?replicaSet=MyReplSet.

            opts = CGI.parse(string_opts).inject({}) do |memo, (key, value)|
              value = value.first
              memo[key.downcase.to_sym] = value.strip.downcase
              memo
            end
      

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            jim.oleary@mongodb.com James O'Leary
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: