Open AdityaB4 opened 7 months ago
There is no reason for us to implement overzealous input validation. Allowing such flexibility can in turn allow the user to use the software in their own preference while overzealous rejection of inputs can annoy the user.
https://nus-cs2103-ay2324s2.github.io/website/admin/tp-pe.html#feature-flaws-2
This is not a functionality bug as our EMAIL
works as intended by accepting all TLDs.
Team chose [response.Rejected
]
Reason for disagreement: I believe the section about overzealous input validation being cited here has been misinterpreted. The point for not having overzealous input validation is to allow for valid and sensible inputs to be represented in different ways. Example from the CS2103T website: phone numbers allowing brackets so that users can enter something along the lines of (H) <phone number>
where <phone number>
is any valid phone number.
However, in this case, allowing for an input that is not a valid or sensible email, i.e., some text that has an invalid TLD (like .techno
) would be considered a bug. To add on to this, allowing for an invalid email input could cause loss of valuable information as mentioned in the original issue description.
Steps to reproduce:
add n/Invalid TLD Mail Doe p/98765432 i/0 e/johnd@example.techno a/311, Clementi Ave 2, #02-25 f/4 t/buyer t/seller h/HDB r/Has 3 cats b/01May2009
Potential scenarios:
add
command, a real estate professional could accidentally make a typo in the top level domain. Without any prompt about this, the user could possibly loose the client's actual email.