[COMPASS-4640] It's possible to enter some not allowed characters into the Port field Created: 15/Feb/21  Updated: 27/Oct/23  Resolved: 07/Feb/22

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: 1.26.0
Fix Version/s: 1.31.0

Type: Bug Priority: Minor - P4
Reporter: Olena Protsiuk (Inactive) Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac, Windows


Attachments: PNG File MongoDB Compass Beta - Connect 2021-02-15 11-37-57.png    
Epic Link: COMPASS-4948
Documentation Changes: Not Needed

 Description   

Steps To Reproduce

  1. Open Connection screen and switch to Fill in connection fields individually
  2. Try to enter '-', '+', 'e' characters into the Port field

Expected Results

Only digits 0..9 should be allowed for entering. Port value are in range 1..65535.

Actual Results

'-', '+', 'e' characters remains entered in the Port field. When try to connect with such Port value the default 27017 port is used.

Additional Notes

Probably issue is introduced within the fix of COMPASS-4607, since it's not possible to enter or paste '-', '+', 'e'  characters in 1.25.0 version.

It's also possible to enter only 0 into the Port field while up\down arrows inside the Port filed doesn't allow to enter value less than 1. When trying to connect with 0 port the default 27017 port value is used.



 Comments   
Comment by Rhys Howell [ 07/Feb/22 ]

This has gone away with the new connection form, with the new behavior the port is part of the host input and does not have number validation.

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