[COMPASS-4236] "No username provided in authority section" message premature Created: 10/Apr/20  Updated: 27/Oct/23  Resolved: 22/Apr/20

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: 1.20.5
Fix Version/s: No version

Type: Bug Priority: Minor - P4
Reporter: Oleg Pudeyev (Inactive) Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Iteration Cantaloupe

 Description   

When I am creating a new connection in Compass in the connection dialog, and I use the SRV URI, and I type the following in:

mongodb://

I see the following message appearing below:

No username provided in authority section

While it is true that no username is provided in authority section, there is no requirement that one is provided at all. For example, in this case what I intended to type was

mongodb://localhost

As a user of Compass, I expect the stated message to only appear when the authority section has been fully entered (i.e. there's an @ sign in the input).



 Comments   
Comment by Oleg Pudeyev (Inactive) [ 22/Apr/20 ]

I appreciate that validation is performed as the input is being entered, but I also would like the validation to produce feedback which:

  • reflects the input
  • is actionable to guide me toward success

The message "No username provided in authority section" fails on the second count: it suggests that there is a problem with my input where there isn't any, thus it creates friction rather than removes friction.

Comment by Massimiliano Marcon [ 22/Apr/20 ]

Compass validates the URI as you type it.

Generated at Wed Feb 07 22:35:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.