mongoimport fails to connect when no URI or host is specified

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: