Open ITLimJiaWei opened 1 week ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Invalid error message when using "d/o" in name
Input: edit 3 n/Maria d/o Hughman Patrick
I expected this command to be accepted as "d/o" is a valid name and is highly likely to be come across since this app is for managing job candidates. However, I am met with the following error message that it is an invalid name.
It would be good to allow for "d/o" to be accepted as it is relatively common for people to shorten "Daughter of" to "d/o" and this shortened version even be in their legal name as well.
[original: nus-cs2103-AY2425S1/pe-interim#334] [original labels: severity.Medium type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
As mentioned below, the UG clearly specifies that the name can only be alphanumeric and hence words like 's/o' are not in scope of the UG. Furthermore, the user receives a suitable error message when attempting to add a symbol to their name which would lead to them working around the issue e.g. by fully spelling out "son of".
Therefore, we will be assigning this as "Not_In_Scope"
Constraints of name stated below:
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: I do not believe this is a duplicate of the other issue as the behaviour shown by the app is different. In the bug report with "d/o", the issue was simpler as it was simply not recognized as a valid name. However, in this issue, using "s/o" which again is part of some people's legal names, it results in a parsing issue instead of simply stating the name is invalid. It lets the name through and parses the text after s/ as a skill.
This behaviour is clearly different from that of the other bug report where an appropriate error message was given. It instead results in a clearly unintended outcome where part of the entered name is taken as a skill.
Input: edit 3 n/Maria s/o Hughman Patrick
As seen in the before and after screenshots, Maria s/o Hughman Patrick is shortened to Maria and the rest of the end after s/ is saved as a skill. This invalid parsing could be due to "s/o". The parsing/validation of name should allow for these characters among others e.g. "d/o" as there is a high likelihood these names will be added at some point in time given how this is an app that manages jobs.
Overall, it would be good to allow these names to be added in full by allowing the parser/validation to be more flexible. One could modify the parsing character for skill to be something other than "s/" such as "sk/" or attempt to validate this name while keeping the "s/" identifier.
Before (the command is input)
After (the command is input)
After (the command is input) - rest of name is saved as skill