Skip to content
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-10-10] [$500] email is not shown in authenticator app #19366

Closed
1 of 6 tasks
kavimuru opened this issue May 22, 2023 · 100 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented May 22, 2023

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:

  1. Go Settings > Security >Two-factor authentication
  2. clear step1 and go to step 2
  3. scan QR code in authenticator app

Expected Result:

should show email in bracket(same as old dot) to identify account

Actual Result:

empty bracket shoes [Expensify()] . does not show email in authenticator app

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.16.6
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

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684392781249369

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f5aa1ce9a00e8423
  • Upwork Job ID: 1673302724686958592
  • Last Price Increase: 2023-09-22
  • Automatic offers:
    • 0xmiroslav | Reviewer | 26858432
    • hungvu193 | Contributor | 26858435
    • gadhiyamanan | Reporter | 26858438
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

Triggered auto assignment to @arielgreen (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@tienifr
Copy link
Contributor

tienifr commented May 22, 2023

I cannot reproduce this. It's showing the email as expected (both on staging and the code's newest version)

@hungvu193
Copy link
Contributor

I also couldn't reproduce, worked as expected on latest main.

@gadhiyamanan
Copy link
Contributor

it’s reproducible only one time when user create new account. after logout and again login it’s working fine

@hungvu193
Copy link
Contributor

hungvu193 commented May 22, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Email is not shown in authenticator app

What is the root cause of that problem?

With new account, after first login, the primaryLogin somehow is empty which causes this issue.

function buildAuthenticatorUrl() {
return `otpauth://totp/Expensify:${props.account.primaryLogin}?secret=${props.account.twoFactorAuthSecretKey}&issuer=Expensify`;
}

What changes do you think we should make in order to solve the problem?

We can use session login as a backup value for primaryLogin email.

    function buildAuthenticatorUrl() {

        return `otpauth://totp/Expensify:${props.account.primaryLogin || props.session.email}?secret=${props.account.twoFactorAuthSecretKey}&issuer=Expensify`;
    }

What alternative solutions did you explore? (Optional)

This issue can be fixed from backend or we can add a primaryLogin in our successData after login, as a guard.

@arielgreen
Copy link
Contributor

@kavimuru @gadhiyamanan I don't understand the reproduction steps. What does "clear step 1" mean? Applause, were you able to reproduce?

Closing until reproducible steps are added.

@arielgreen arielgreen added the Needs Reproduction Reproducible steps needed label May 22, 2023
@gadhiyamanan
Copy link
Contributor

Please try these steps:

  1. create a new account
  2. Go to Settings > Security >Two-factor authentication
  3. click on copy codes or download option
  4. click on the Next Button
  5. scan the QR code in the authenticator app

cc: @arielgreen

@gadhiyamanan
Copy link
Contributor

bump @arielgreen ^^

@gadhiyamanan
Copy link
Contributor

Bump @arielgreen ^^

@kbecciv
Copy link

kbecciv commented Jun 20, 2023

Issue is reproducible here https://expensify.slack.com/archives/C049HHMV9SM/p1686745548252899, reopening!

@kbecciv kbecciv reopened this Jun 20, 2023
@melvin-bot melvin-bot bot added the Overdue label Jun 20, 2023
@arielgreen
Copy link
Contributor

reassigning, team change

@melvin-bot melvin-bot bot removed the Overdue label Jun 21, 2023
@arielgreen arielgreen reopened this Jun 21, 2023
@arielgreen arielgreen removed the Bug Something is broken. Auto assigns a BugZero manager. label Jun 21, 2023
@arielgreen arielgreen removed their assignment Jun 21, 2023
@arielgreen arielgreen added the Bug Something is broken. Auto assigns a BugZero manager. label Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@CortneyOfstad
Copy link
Contributor

So I'm having a heck of a time getting this to reproduce. Has anyone else had luck reproducing within the last 8 days?

@BeeMargarida
Copy link
Contributor

BeeMargarida commented Jun 23, 2023

Yap, I could reproduce today running on the main branch. Only reproducible using a new account, as mentioned by @gadhiyamanan in this comment.

I'm Ana from Callstack, an expert contributor group, and I would like to help close this issue out. I see that there's a proposal already. Is the current blocker related to not being able to replicate the issue?

@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

📣 @gadhiyamanan 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @hungvu193 got assigned: 2023-09-25 15:15:05 Z
  • when the PR got merged: 2023-10-02 04:48:53 UTC
  • days elapsed: 4

On to the next one 🚀

@hungvu193
Copy link
Contributor

just a note, I think this PR will be eligible for urgency bonus because it got approved within 3 days (without extra changes).

@0xmiros
Copy link
Contributor

0xmiros commented Oct 2, 2023

Extra change was requested but reverted after discussion.
So I think it makes sense to apply bonus here.
cc: @roryabraham

@roryabraham
Copy link
Contributor

Yep agreed that's fair in this case

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 3, 2023
@melvin-bot melvin-bot bot changed the title [$500] email is not shown in authenticator app [HOLD for payment 2023-10-10] [$500] email is not shown in authenticator app Oct 3, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.76-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-10-10. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

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:

  • [@0xmiroslav] The PR that introduced the bug has been identified. Link to the PR:
  • [@0xmiroslav] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@0xmiroslav] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@0xmiroslav] Determine if we should create a regression test for this bug.
  • [@0xmiroslav] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@NicMendonca] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 10, 2023
@NicMendonca
Copy link
Contributor

@0xmiroslav bump on BZ checklist ^^

@NicMendonca
Copy link
Contributor

NicMendonca commented Oct 10, 2023

Payment summary:

  • Reporter: @gadhiyamanan - $250 (reported prior to price changes)
  • Contributor: @hungvu193 - $1500
  • Contributor+: @0xmiroslav - $1500

@NicMendonca
Copy link
Contributor

@gadhiyamanan @0xmiroslav can you both please accept the offer in Upwork?

@0xmiros
Copy link
Contributor

0xmiros commented Oct 10, 2023

  • The PR that introduced the bug has been identified. Link to the PR: feat: add 2-factor authentication #18576
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/18576/files#r1353273003
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • Determine if we should create a regression test for this bug.
  • If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

User could still enable 2fa using authenticator app with this bug existence. Just label issue.
So no need regression test

@0xmiros
Copy link
Contributor

0xmiros commented Oct 10, 2023

@NicMendonca Is it possible to apply #19366 (comment)?
As this issue is very old before new base price announcement and proposal was submitted and approved based on original price.
The issue was on hold for long time just because of backend work.

@gadhiyamanan
Copy link
Contributor

@NicMendonca offer accepted, thanks!

@NicMendonca
Copy link
Contributor

update, and everyone has been paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests