-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: CLI Module, Shell API
-
Needed
-
-
Iteration Düsseldorf
Steps to repro:
- Connect to a TLS-using mongod with --tls (not the connection string flag)
- Use connect(db.getMongo()._uri)
- See it fail because connect did not re-use the --tls flag from the command line
Generally speaking, I think we need to check how command line arguments affect connect() and [new] Mongo() and make sure that we emulate the legacy shell’s behavior (connect uses the Mongo constructor under the hood, i.e. they have the same behavior here).
- related to
-
MONGOSH-661 Use Mongo constructor to create initial connection
- Open