Mongo shell v4.4 reports a non-specific exception when a malformed URI is supplied

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 4.4.0
    • Component/s: Shell
    • None
    • Server Triage
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Accidentally encountered this while connecting to my Atlas cluster. Essentially if the supplied URI is malformed, the shell fails with the exception: No digits error which does not really articulate what the problem is exactly:

      $ mongo "mongodb+srv:/cluster2.fu4ty.mongodb.net/"
      MongoDB shell version v4.4.0
      exception: No digits
      exiting with code 1
      $ mongo "mongo+srv://cluster2.fu4ty.mongodb.net/"
      MongoDB shell version v4.4.0
      exception: No digits
      exiting with code 1
      

              Assignee:
              [HELP ONLY] Backlog - Triage Team
              Reporter:
              Dmitry Ryabtsev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: