Open Zack-Tay opened 2 months ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Application accepts bad email
Description
The application accepts bad emails such as 'example@com' which should not be the case since such emails are invalid.
Steps to reproduce
- Input the command
add n/Xavier Tan p/98765432 e/xavt@mail a/Ang Mo Kio street 2, Block 123, #01-01
(Notice how the email inputted here is an invalid one).- Hit 'Enter'.
- Contact is added to the system.
Expected Behaviour
Application should show an error to input a correct email.
Actual
System still inputs the new contact.
[original: nus-cs2103-AY2324S2/pe-interim#653] [original labels: type.FeatureFlaw severity.VeryLow]
[This is the team's response to the above 'original' bug]
We understand your concern, but we will have to reject this bug as xavt@mail is indeed a valid email. This is based on the standard email name conventions which states that the domain (the part after @) can be a local domain name without TLD (eg. .com), meaning that emails without a dot are allowed. You can read more here to find out more about this issue.
In terms of the local domain name, there are no restrictions as well as it is determined by the person who created the email.
You can find more details in the following website on the naming conventions for emails here.
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: Maybe the group can give some real-world examples of emails where the domain consists of solely numbers.
Steps to reproduce
typing: add n/John Doe p/98765432 e/johnd@132 a/John street, block 123, #01-01
Expected
Since this is not a conventional email format, the app should throw an error.
Actual
But the app accepts such value, which means an invalid value for email is accepted.
Screenshots