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

mongoimport fails to connect when no URI or host is specified

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: None
    • None

       $ ./bin/mongoimport in.json 
      2019-04-11T15:05:54.635-0400    no collection specified
      2019-04-11T15:05:54.635-0400    using filename 'in' as collection
      2019-04-11T15:05:54.635-0400    Failed: error parsing connection string from URI
      2019-04-11T15:05:54.635-0400    imported 0 documents 

      The error occurs in getTargetConnection, which is used to print a more descriptive connection address. This function should be used in all tools, but is currently only present in mongoimport as a direct solution to TOOLS-2166. As a result, only mongoimport seems to be affected by this bug.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: