-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.12.5
-
Component/s: Compass, Connectivity
-
None
-
Sprint Ol' Dirty Bastard
If a connection URI (non-SRV) from the clipboard has a whitespace at the end of the replica set name, it will be included by the connection dialog and cause the connection to fail with.
> no secondary found in replicaset or invalid replica set name
If I prepend whitespace to the Hostname in the URI, the connection fails with:
> No hostname or hostnames provided in connection string
However, it is not obvious there is whitespace prepended in the UI.
Since copy/paste sometimes appends/prepends whitespace, we should consider trimming it from the beginning and end of all input strings on the connection dialog.
Initially reported by Sam Weaver
> Scenario: when I have a URI in my paste buffer, Compass detected the URI and populated the fields in the connect window. I had a trailing white space at the end of the replica set name that got carried over into the connect window. Not realizing my RS name now had a trailing space in it, I hit connect and got an error that the isMaster response did not match the provided set name.
https://app.intercom.io/a/apps/p57suhg7/inbox/inbox/unassigned/conversations/15584449307
- related to
-
COMPASS-3538 Compass should trim whitespace from the beginning and end of the username on connection window
- Closed