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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • 4.4.0
    • None
    • Shell
    • None
    • Triage
    • ALL

    Description

      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
      

      Attachments

        Activity

          People

            backlog-server-triage Backlog - Triage Team
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: