emirotin/mongodb-migrations

urlBuilder.buildMongoConnString doesn't perform encodeURIComponent

azisso opened this issue · 0 comments

Hey,
The described function takes input parameters like username and password and passes them to the underlying MongoDB driver.
This can cause issues with specific values like a password containing a comma (,), and others as can be seen here:
https://jira.mongodb.org/browse/NODE-809

Also, a better solution would be to leave the auth parameters (user and password) in the options parameter passed into the driver, instead of adding them to the beginning of url