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

Allow query string in MongoDB URI to start with &

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.10.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      Currently the following URI is not accepted by the driver:

      mongodb://foo/?&retryReads=true

      This makes programmatically constructing URIs more difficult than it needs to be because one has to check whether the query string is empty to determine the correct separator to use for additional options.

      Instead the URI parser should accept empty option key-value pairs as there is no harm in doing so.

            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: