[COMPASS-2725] Compass should trim whitespace from replica set name on connection window, including from URI in clipboard Created: 05/Apr/18 Updated: 22/Mar/19 Resolved: 11/Apr/18 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Compass, Connectivity |
| Affects Version/s: | 1.12.5 |
| Fix Version/s: | 1.14.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Brian Blevins | Assignee: | Durran Jordan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Sprint: | Sprint Ol' Dirty Bastard | ||||||||
| Description |
|
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 |
| Comments |
| Comment by Githook User [ 13/Apr/18 ] |
|
Author: {'email': 'durran@gmail.com', 'name': 'Durran Jordan', 'username': 'durran'}Message: |
| Comment by Githook User [ 11/Apr/18 ] |
|
Author: {'email': 'durran@gmail.com', 'name': 'Durran Jordan', 'username': 'durran'}Message: |