T-Wan-Lin / pe

0 stars 0 forks source link

Acceptance of invalid email address #2

Open T-Wan-Lin opened 1 year ago

T-Wan-Lin commented 1 year ago

Screenshot 2023-04-14 at 4.20.46 PM.png

Sometimes users may accidentally hit enter before they complete the email address. Instead of checking for the presence of @, perhaps you could check if the email at least has a suffix like (.com.sg)

nus-pe-bot commented 1 year ago

Team's Response

No details provided by team.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

The email address accepted is not an actual email address

Though its stated in their UG that an email address is only valid in their program if there is a @, but I believe there should be a .edu/.gov/.sg or .com that should be checked

Screenshot 2023-04-14 at 4.40.27 PM.png


[original: nus-cs2113-AY2223S2/pe-interim#2843] [original labels: severity.Low type.FeatureFlaw]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

Valid email domains need not include those fields, as specified in our UG.

ex) https://en.wikipedia.org/wiki/Email_address

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: [replace this with your explanation]


## :question: Issue response Team chose [`response.Rejected`] - [x] I disagree **Reason for disagreement:** ![Screenshot 2023-04-18 at 11.01.56 PM.png](https://raw.githubusercontent.com/T-Wan-Lin/pe/main/files/be8be0ac-412c-4fd8-b6ba-92c057e8c559.png) By going on to any free online email verification website, it is obvious that the user input is not a valid email address. Hence, it becomes apparent that the way the development team checked for invalid email inputs is inadequate. ![Screenshot 2023-04-18 at 11.06.42 PM.png](https://raw.githubusercontent.com/T-Wan-Lin/pe/main/files/4831522c-5025-403c-aae6-145421394691.png) In the Wikipedia article that the development team has provided in their justification, it is stated that the domain 'has a list of **dot-separated** labels. The development team also justified the rejection of this bug saying that `hello@s` is a valid email input but nowhere in the Wikipedia article was there an example of a valid email address without a dot-separated domain label. ![Screenshot 2023-04-18 at 11.12.21 PM.png](https://raw.githubusercontent.com/T-Wan-Lin/pe/main/files/98ded079-9c26-416c-9755-6a5820fb1c1d.png) Furthermore, upon research, these are the various forms of **invalid** email addresses, which match the input. For a minimally viable valid email address checker, I feel that the team should have considered IETF standards and checked for some level of dot-separation and domain levels, which does not take much effort as the implementation is similar to that when the team checked for the presence of @ as stated in the UG.
## :question: Issue type Team chose [`type.FeatureFlaw`] Originally [`type.FunctionalityBug`] - [x] I disagree **Reason for disagreement:** ![Screenshot 2023-04-18 at 11.15.49 PM.png](https://raw.githubusercontent.com/T-Wan-Lin/pe/main/files/ac6f13e3-b28e-4dc5-a767-c5a14b5282bb.png) Per the textbook guidelines, this falls under functionality bug as the program is expected to throw an error message when an invalid email address is an input, which is a reasonable response to possible invalid user inputs.
## :question: Issue severity Team chose [`severity.Low`] Originally [`severity.Medium`] - [x] I disagree **Reason for disagreement:** ![Screenshot 2023-04-18 at 11.18.43 PM.png](https://raw.githubusercontent.com/T-Wan-Lin/pe/main/files/bd1e4417-6082-4f09-8691-bac6496ccae9.png) Mistyping email addresses is a relatable and not-so-rare occurrence in our daily lives. As this application is optimised for fast typers, they may accidentally hit enter before they can finish inputting the email and they would have to find the company and delete it from the list. Such hassle could be avoided if there was a minimally viable valid email address checker to block them from inputting companies with invalid email contact addresses.