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

--upsertFields argument is not validated

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • Affects Version/s: 2.8.0-rc2
    • Component/s: mongoimport
    • None
    • Not Needed

      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
      

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

              Created:
              Updated:
              Resolved: