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

mongoimport broken w/no-args

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.5.4
    • Fix Version/s: 2.5.5
    • Component/s: Tools
    • Labels:
      None
    • Backwards Compatibility:
      Major Change
    • Operating System:
      ALL

      Description

      When running mongoimport without any options it seems to default to the "" collection (since the file is not validated) and reading input from stdin instead of showing help.

      Just for fun, I typed in a doc as you can see below:

      $mongoimport 
      connected to: 127.0.0.1
      no collection specified!
      using filename '' as collection.
       
      {_id:1}
      2013-12-19T09:09:10.191-0500 error: Invalid ns [test.]
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sverch Shaun Verch
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: