Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28397

shell helper for update must pass through all options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Shell
    • Operating System:
      ALL

      Description

      The helper for update expects and looks for options multi and upsert (also writeConcern and collation, and then as of 3.5.9 arrayFilters) and it silently ignores any and all other options.

      This is bad because (a) misspelled options are silently ignored and the wrong thing happens (b) if we add new options in the future, they will also be silently ignored and not sent ahead to the server by older shell.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: