SPWwj / pe

0 stars 0 forks source link

Invalid phone number input #6

Open SPWwj opened 1 year ago

SPWwj commented 1 year ago

Invalid phone number input can be enter to the app.

As management app, the app should enforce the data correctness for the user

image.png

soc-se-bot commented 1 year ago

Team's Response

CAUSE

Carried over from AB3.

Response explanation

Arguable if an issue.

Not all customers have standard Singapore number (also did you know that +65 3X numbers are actually Singapore numbers? See IMDA public documentation).

Additionally, AutoM8 does not restrict to only Singapore numbers.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: - Here is the sample solution you could validate your SG phone number: VALIDATION_REGEX = "^[689]\\d{7}$";

Validating phone numbers is a critical task for software engineers because invalid phone numbers can result in unnecessary redundancy and overhead costs. Each validation message service incurs a cost, and if the software does not enforce validation on phone numbers, the company is likely to incur significant financial losses. Therefore, it is essential to ensure that phone numbers are properly validated to prevent any potential errors or financial setbacks.