Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1605

Bug when parsing arrays in new url parser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Passing the query string '?foo=bar&foo=baz' results in the options object

      { foo: 'bar' }

      but it should result in

      { foo: [ 'bar', 'baz' ] }

      This is because of this line in the uri parser where the variable name value is being used both as the array to filter on as well as an argument to the callback function within filter itself.

        Attachments

          Activity

            People

            • Assignee:
              rebecca.weinberger Rebecca Weinberger
              Reporter:
              rebecca.weinberger Rebecca Weinberger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: