thony-ui / pe

0 stars 0 forks source link

`add -s` command accepts invalid phone number format. #4

Open thony-ui opened 4 days ago

thony-ui commented 4 days ago

Screenshot 2024-11-15 at 4.22.17 PM.png

nus-se-script commented 1 day ago

Team's Response

Thank you for pointing out this issue. As you have mentioned our target users are not restricted to Singapore but small convenience store owners in general. The valid phone numbers that we allow is intended since many international numbers start with different digits and are of varying lengths.

Furthermore, in our UG we have specifically given the restrictions for the phone number that the user can enter so that they have no confusion as seen below:

image.png

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: Even if the UG mentions that the application allows longer phone numbers, this is still a flaw. Based on research, the longest phone number in the world is 17 digits, as highlighted here. Allowing users to input a phone number longer than this without an appropriate error message is clearly an oversight. Keying in a number longer than 17 digits is almost certainly a mistake, and without validation, it could lead to inaccurate or invalid data being stored. The absence of an error message for such inputs compromises the application's reliability and usability, as users are left unaware that they have entered something unreasonable. Adding validation for this case would prevent potential errors.