Mixed casing prevents multiple readPreferenceTags in uri string

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The URI

      mongodb://mongos1.example.com,mongos2.example.com/?readPreferenceTags=foo:bar&readPreferencetags=dc:ny

      If there are two entries in the URI for readPreferenceTags, and one is case-insensitive it is not appended to the parsed readPreferenceTags

      This returns:

       

      { readPreferenceTags":[{"dc":"ny"}] }

       

      Should return:

      { readPreferenceTags":[{"foo": "bar"}, {"dc":"ny"}] }

       
      I believe this occurs because the query parser will gather same-value key as an array. But because they don't have the same key the latter value is overwriting the previous.

       

       

              Assignee:
              Unassigned
              Reporter:
              Thomas Reggi (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: