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

mongoimport broken w/no-args

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 2.5.4
    • 2.5.5
    • Tools
    • None
    • Major Change
    • 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

              sverch Shaun Verch
              scotthernandez Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: