-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-09-04] [$1000] App allows '÷×' symbols in legal name even though error states that 'Name can only include letters' #24508
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.App allows '÷×' symbols in legal name even though error states that 'Name can only include letters' What is the root cause of that problem?the regexp we used here Line 1160 in 21146e5
What changes do you think we should make in order to solve the problem?we need to update regexp to exclude // ALPHABETIC_AND_LATIN_CHARS: /^[a-zA-ZÀ-ÿ ]*$/,
ALPHABETIC_AND_LATIN_CHARS: /^[a-zA-ZÀ-ÖØ-öø-ÿ ]*$/, What alternative solutions did you explore? (Optional)we can also change room name regexp. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The app allows '÷×' symbols in the legal name even though the error states 'Name can only include letters What is the root cause of that problem?We are using this validation function to check App/src/libs/ValidationUtils.js Lines 356 to 358 in e555022
The problem lies in the regex: Line 1160 in e555022
We are allowing extended Latin characters: Also while investigating I found the same problem with the room name: Line 1173 in e555022
What changes do you think we should make in order to solve the problem?We need to update the regex to
What alternative solutions did you explore? (Optional)If we do not allow
|
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.We don't want the divide What is the root cause of that problem?The Line 1109 in ed2c287
This range includes the divide and multiply symbols, this is the full char list in that range
What changes do you think we should make in order to solve the problem?We can update the regex to not allow the divide and multiply symbols. This is the regex I suggest
which would not allow Optional: What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~011b9f83e512145843 |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik ( |
Looks like we already have a couple of proposals ready for review when you get a chance @robertKozik — thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The app currently allows the symbols What is the root cause of that problem?The root cause of this problem is the Lines 1109 to 1110 in ed2c287
What changes do you think we should make in order to solve the problem?To address this issue, I suggest modifying the following constants:
The updated P.S.
This modified regular expression matches any string that consists of one or more characters from the Latin script, including diacritics, and spaces. ResultWhat alternative solutions did you explore? (Optional)In this validation, it is important to have comprehensive support for Latin-based languages and accurate diacritic matching. Therefore, the proposed solution of using Other alternative solutions, such as |
@bfitzexpensify, @robertKozik Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hey, sorry for keeping you waiting on that one. I believe all the proposals correctly state the root cause of the problem,I've checked all the solutions on the web. All the solutions can be divided into three groups: @ahmedGaber93 and @namhihi237's solutions are based on ranges, e.g., Out of all the solutions, I believe the best way to go is the one using Unicode property escapes. I see it as a newer solution compared to the others since it uses the Script=Latin to match alphabetic and Latin characters. This method is more self-descriptive than the others, and that's why I believe it's the way to go. Selected Proposal: Proposal 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I agree with @robertKozik's assessment. ASsigning @Pluto0104 to this issue. |
📣 @Pluto0104 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
🎯 ⚡️ Woah @robertKozik / @Pluto0104, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.57-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-04. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
Thanks @robertKozik. Payments have been made for reporting and contributor work, so I believe we're all done here - thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should not allow any symbols in legal name
Actual Result:
App allows '÷×' symbols in legal name even though error states 'Name can only include letters'
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.53-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
app.allows.symbol.in.legal.name.mp4
az_recorder_20230813_105535.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691119895522709
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: