Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2461

Complex password throws uri parser error.

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.2, 3.5.3
    • Component/s: Authentication

      Connection Configuration

       

      mongodb://sample_user:kT9J*Hp#t7?m6Hs@localhost:27017/test_db

       

       

      Error

      When I run the application I am getting the following error

      UnhandledPromiseRejectionWarning: MongoParseError: Incomplete key value pair for option
      at parseQueryString (/appl/node_modules/mongodb/lib/core/uri_parser.js:406:13)

      I did some debug on the uri_parser file and got this parsed object.

      {{[Object: null prototype]

      { '*m6Hs*@127.0.0.1:27017/test_db': '' }

      }}

      {{}}

      Solution:

      **

       - I discovered that the password has the "?" char, it breaks the connection string at some point, my solution was to remove the question mark to the password string, but it seems something possible to fix by code.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            germanazo@gmail.com German Bortoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: