Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-473

--upsertFields argument is not validated

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc2
    • Fix Version/s: 2.8.0-rc3
    • Component/s: mongoimport
    • Labels:
      None
    • Documentation Changes:
      Not Needed

      Description

      this should have failed:

      mongoimport --db test -c test --file /data/db/jstests_tool_incompatible_flags_external/a --upsertFields 'a,$b' --host 127.0.0.1:31000
       m31000| 2014-12-08T13:46:27.509-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:52217 #5 (2 connections now open)
      sh870| 2014-12-08T13:46:27.510-0500	connected to: 127.0.0.1:31000
      sh870| 2014-12-08T13:46:27.511-0500	imported 2 documents

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adinoyi.omuya Adinoyi Omuya
              Reporter:
              mpobrien Michael O'Brien
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: