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

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

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

      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:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: