Skip to content

[HOLD for payment 2023-09-04] Security - notFound.goBackHome message appears after disabling 2FA authentication #25674

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #23060

Action Performed:

Precondition: Have 2FA set up.

  1. Launch New Expensify app.
  2. Go to Settings > Security > Two-factor authentication.
  3. Tap Disable two-factor authentication.

Expected Result:

There is no error message

Actual Result:

notFound.goBackHome message appears after disabling 2FA authentication
This error message also appears in different page in apps, like the map in Distance tab when going offline

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Version Number: 1.3.56-2

Reproducible in staging?: Yes

Reproducible in production?: No

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

Bug6173011_Screen_Recording_20230822_102533_New_Expensify.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    on Aug 22, 2023
  2. OSBotify commented on Aug 22, 2023

    @OSBotify
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  3. melvin-bot commented on Aug 22, 2023

    @melvin-bot

    Triggered auto assignment to @Julesssss (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  4. aimane-chnaif commented on Aug 22, 2023

    @aimane-chnaif
    Contributor

    Regression from #25164

  5. allroundexperts commented on Aug 22, 2023

    @allroundexperts
    Contributor

    I think this is not a regression. The above mentioned PR just made this visible.

  6. allroundexperts commented on Aug 22, 2023

    @allroundexperts
    Contributor

    Proposal

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

    notFound.goBackHome is not translated.

    What is the root cause of that problem?

    The real issue here is that here, we're specifying a default link of value notFound.goBackHome but we're never translating it

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

    We should change this line to:

    link: ''
    

    Inside the component, we can destructure link as originalLink and add the following line:

    const link = originalLink ?? localize.translate('notFound.goBackHome');
    

    What alternative solutions did you explore? (Optional)

    None

  7. added
    Daily
    and removed
    Hourly
    on Aug 22, 2023
  8. narefyev91 commented on Aug 22, 2023

    @narefyev91
    Contributor

    The real issue here is that here, we're specifying a default link of value notFound.goBackHome but we're never translating it. We should change the above mentioned line to:

    Localize.translate(`notFound.goBackHome`)
    

    Agree with @allroundexperts

  9. Pujan92 commented on Aug 22, 2023

    @Pujan92
    Contributor

    Proposal

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

    Default link not gets trnaslated

    What is the root cause of that problem?

    When we pass shouldShowLink and default link is not we are translating that is the issue.

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

    Remove translation from FullPageNotFoundView by passing only key and apply translation only in the BlockingView

    link={props.translate(props.linkKey)}

  10. daordonez11 commented on Aug 22, 2023

    @daordonez11
    Contributor

    This was fixed in #25516 I agree with @allroundexperts it's better to fix in case the default link is used.

  11. Pujan92 commented on Aug 22, 2023

    @Pujan92
    Contributor

    @narefyev91 @allroundexperts how about passing plain linkKey from FullPageNotFoundView and apply single translation directly in the BlockingView as that is the component that we are using eventually #25674 (comment)?

  12. 21 remaining items

  13. allroundexperts commented on Aug 22, 2023

    @allroundexperts
    Contributor

    Is it dynamic? when change language on another device?

    It's not. But we can make it so by changing the defaultProp of link to '' and using the following inside the component:

    const newLink = link ?? localize.translate('notFound.goBackHome');
    

    Updated proposal.

  14. mountiny commented on Aug 22, 2023

    @mountiny
    Contributor

    @allroundexperts @shubham1206agra @aimane-chnaif @narefyev91 @daordonez11 Thanks for help here, really appreciate it. Deploy blockers are the highest urgency work you can focus on and because of that I have also taken over and created the PR myself. I understand you would prefer to land a job to get paid for here but we need to put the quick work here over that. I hope you can still help us with the most urgent tasks as it benefits the entire company which means more work for the community.

  15. narefyev91 commented on Aug 22, 2023

    @narefyev91
    Contributor

    @allroundexperts @shubham1206agra @aimane-chnaif @narefyev91 @daordonez11 Thanks for help here, really appreciate it. Deploy blockers are the highest urgency work you can focus on and because of that I have also taken over and created the PR myself. I understand you would prefer to land a job to get paid for here but we need to put the quick work here over that. I hope you can still help us with the most urgent tasks as it benefits the entire company which means more work for the community.

    No worries at all!

  16. mountiny commented on Aug 22, 2023

    @mountiny
    Contributor

    @Pujan92 We will still merge the fix

  17. allroundexperts commented on Aug 22, 2023

    @allroundexperts
    Contributor

    All good @mountiny!

  18. removed
    DeployBlockerCash
    on Aug 23, 2023
  19. mountiny commented on Aug 23, 2023

    @mountiny
    Contributor

    Fixed on staging

  20. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Aug 28, 2023
  21. changed the title [-]Security - notFound.goBackHome message appears after disabling 2FA authentication[/-] [+][HOLD for payment 2023-09-04] Security - notFound.goBackHome message appears after disabling 2FA authentication[/+] on Aug 28, 2023
  22. removed
    Reviewing
    on Aug 28, 2023
  23. melvin-bot commented on Aug 28, 2023

    @melvin-bot

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

  24. melvin-bot commented on Aug 28, 2023

    @melvin-bot

    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.

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

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Awaiting PaymentEngineeringWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions