processFLEOptions mutates input

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: