Allow query string in MongoDB URI to start with &

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: