-
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-05-16] [$1000] Duplicate phone numbers are accepted as a contact method #18207
Comments
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPosting proposal early as per new guidelines Please re-state the problem that we are trying to solve in this issue.Duplicate phone numbers are accepted as a contact method What is the root cause of that problem?Whenever new contact method added it will call App/src/pages/settings/Profile/Contacts/NewContactMethodPage.js Lines 77 to 84 in a786349
We are using What changes do you think we should make in order to solve the problem?Within const submitForm = useCallback(() => {
const phoneLogin = LoginUtils.getPhoneNumberWithoutSpecialChars(login); // *** Add this ***
// If this login already exists, just go back.
if (lodashGet(props.loginList, phoneLogin)) { // *** Updated Code
....
}
....
}, [login, props.loginList, password]); This will solve the issue i.e. do not allow to enter same phone number although in different format as shown in result video. What alternative solutions did you explore? (Optional)None Results18207-DuplicatePhoneNumber.mp4 |
Thanks @Prince-Mendiratta. Indeed it shall be fixed by that PR. |
Job added to Upwork: https://www.upwork.com/jobs/~014cd7afa4b6e6e6d5 |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @techievivek ( |
Oops, I just read #18207 (comment). I'll place this on hold until #18103 is done. |
#18103 has been deployed to staging and my staging version of Expensify appears to have this fixed: 2023-05-04_16-23-09.mp4Closing this now as the issue is resolved. Please reopen if it pops up again! |
@kadiealexander I have tried to retest this issue on the latest version on Staging, I am still able to repro this bug. Take a look at this video: 2023-05-04.07.54.56.mp4 |
I tested this on the staging web app in Chrome just to be sure and I'm still unable to reproduce it: 2023-05-04_17-03-13.mp4 |
Hello @kadiealexander, I have identified two factors that can reproduce the bug. Firstly, please ensure that the phone number you use is not already registered as a contact method in another account or doesn't already generate any error. Use a new phone number to avoid any conflicts. I have tried to use a phone number that is already registered and as you can see on the video the bug can't be seen when doing that. Secondly, if you repeatedly add invalid phone numbers, the app will throttle the user and block any new numbers. To avoid this, please log in to a new account or use another account that hasn't been testing this repeatedly. By using a new phone number and an account that hasn't been throttled, you can reproduce the bug accurately. 2023-05-04.08.22.59.mp4 |
Thank you for sharing those factors, I was able to reproduce the bug using a brand new number: 2023-05-04_17-51-00.mp4 |
@PrashantMangukiya Thanks for the proposal and sorry that I missed it. I should have reviewed this first. I think your proposal is outdated and the RCA is not valid (at least not anymore). |
@s77rt It's ok. Thank you. |
We are saving optimistic data using just the contact number without SMS domain. When the requests have been throttled and the user tries to enter a contact number, a new entry is made in the This does not happen when the requests have not been throttled though. In this scenario, the optimistic data adds the contact number without SMS domain to This issue should be fixed by using the contact with SMS login for |
@Prince-Mendiratta Thanks for the quick response, but will the api accept a phone number with sms domain as a valid input? |
@s77rt Yes, I already tested it in the various scenarios and it works perfectly. |
@Prince-Mendiratta Awesome! Let's just use 🎀 👀 🎀 C+ reviewed cc @techievivek |
@s77rt Also, I'm not 100% sure but this fix should resolve these issues as well since the RCA looks same: |
@Prince-Mendiratta I didn't check the RCA of those issues as they seem related to "email" and not phone numbers? But it would be great if we can get more issues fixed with one PR. |
📣 @Prince-Mendiratta You have been assigned to this job by @techievivek! |
PR is up for review! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 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-05-16. 🎊 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.
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:
|
|
Sharing the timeline of this issue to help with the eventual analysis, calculated with this tool. 🐛 Issue created at: Sun, 30 Apr 2023 04:35:40 GMT |
Sent contracts to @Prince-Mendiratta, @s77rt and @Nathan-Mulugeta, please let me know once they've been accepted and I'll pay! |
Thanks @kadiealexander , received. |
@kadiealexander Accepted! |
Everyone is paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected result:
The duplicate contact method added should not be shown, and no error should be shown.
Actual result:
Two contact methods with the same phone number are being shown and both have errors.
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.8.8
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
2023-04-29.15.54.08.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682773410951039
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: