Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-547

processFLEOptions mutates input

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.8.0
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 1
    • Iteration Uglifruit
    • Not Needed

      https://github.com/mongodb-js/mongosh/blob/bfbb4fbb21d7c7e3854947f180647c00f842cbf8/packages/shell-api/src/helpers.ts#L635 mutates the input object. It should not do that, because otherwise the same options object cannot be passed to multiple `Mongo()` calls.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: