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 2024-03-29] [$500] Android - Workspace - Link OAUth integration error appears "android_package_name is missing" #38099

Closed
1 of 6 tasks
lanitochka17 opened this issue Mar 11, 2024 · 24 comments
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

@lanitochka17
Copy link

lanitochka17 commented Mar 11, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.50.4
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Log in with an expensifail account
  2. Create a workspace
  3. Go to the workspace settings
  4. Start adding Chase bank with plaid
  5. Tap on the "Continue to log in" button

Expected Result:

There shouldn't be any error messages

Actual Result:

Link OAUth integration error appears "android_package_name is missing"

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6400075_1709448818921.az_recorder_20240228_171324.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ff17a561ab809c61
  • Upwork Job ID: 1767500442058608640
  • Last Price Increase: 2024-03-12
Issue OwnerCurrent Issue Owner: @laurenreidexpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

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

@lanitochka17
Copy link
Author

@laurenreidexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@bernhardoj
Copy link
Contributor

Proposal

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

When trying to connect with a Chase account, the Chase page shows an error message.

What is the root cause of that problem?

As pointed out by the error message, the android_package_name is missing. When we open the plaid page, the app will request an open plaid bank login API that passes redirectURI to the API to get the plaid token.

function openPlaidBankLogin(allowDebit: boolean, bankAccountID: number) {
// redirect_uri needs to be in kebab case convention because that's how it's passed to the backend
const {redirectURI} = getPlaidLinkTokenParameters();
const params: OpenPlaidBankLoginParams = {
redirectURI,
allowDebit,
bankAccountID,
};

Based on the Plaid docs, for Android, we should use android_package_name instead of redirect_uri.

getPlaidLinkTokenParameters already returns the android package name when it's an Android platform, but we never use it.

const getPlaidLinkTokenParameters: GetPlaidLinkTokenParameters = () => ({
androidPackage: CONST.ANDROID_PACKAGE_NAME,
});

This issue happens after this PR where we only use redirectURI from getPlaidLinkTokenParameters.

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

Include androidPackage to the API params.

const {redirectURI, androidPackage} = getPlaidLinkTokenParameters();
const params: OpenPlaidBankLoginParams = {
    redirectURI,
    androidPackage,

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01ff17a561ab809c61

@melvin-bot melvin-bot bot changed the title Android - Workspace - Link OAUth integration error appears "android_package_name is missing" [$500] Android - Workspace - Link OAUth integration error appears "android_package_name is missing" Mar 12, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)

@HappyLife1222
Copy link

The error message "android_package_name is missing" typically occurs in the context of integrating with third-party services or APIs that require an Android package name to be specified. Here are a few common scenarios where this error may occur:

Firebase Authentication: When integrating Firebase Authentication in an Android app, the android_package_name parameter is required to link the Firebase project with the Android app. If this parameter is missing or incorrect, you may encounter the "android_package_name is missing" error.

Google Play Services API: When using Google Play Services APIs, such as Google Maps or Google Sign-In, the android_package_name is often required for authentication and authorization. If this parameter is not provided or is incorrect, you may receive the error message.

Third-Party SDKs: Some third-party SDKs or APIs may require the Android package name to be specified in order to authenticate requests or ensure proper communication between the app and the service. If the android_package_name is missing in these cases, you may encounter errors.

To resolve this error, make sure to check the documentation of the specific service or API you are integrating with and ensure that the android_package_name parameter is correctly provided in your configuration. Double-check that the package name specified matches the package name of your Android app.

Copy link

melvin-bot bot commented Mar 12, 2024

📣 @pavlenkoviktor! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@HappyLife1222
Copy link

HappyLife1222 commented Mar 12, 2024

Contributor details
Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~010757be5da859689d

Copy link

melvin-bot bot commented Mar 12, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@aimane-chnaif
Copy link
Contributor

@bernhardoj's proposal looks good and tests well.
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Mar 14, 2024

Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@iwiznia
Copy link
Contributor

iwiznia commented Mar 14, 2024

Proposal looks good to me. @bernhardoj, @aimane-chnaif do you understand why this started to show up now? Or is it just that no one noticed it till now?

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

❌ There was an error making the offer to @aimane-chnaif for the Reviewer role. The BZ member will need to manually hire the contributor.

Copy link

melvin-bot bot commented Mar 14, 2024

❌ There was an error making the offer to @bernhardoj for the Contributor role. The BZ member will need to manually hire the contributor.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 15, 2024
@bernhardoj
Copy link
Contributor

I guess it's just no one noticed it.

PR is ready

cc: @aimane-chnaif

@laurenreidexpensify
Copy link
Contributor

Offers sent manually to @bernhardoj and @aimane-chnaif in upwork

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 22, 2024
@melvin-bot melvin-bot bot changed the title [$500] Android - Workspace - Link OAUth integration error appears "android_package_name is missing" [HOLD for payment 2024-03-29] [$500] Android - Workspace - Link OAUth integration error appears "android_package_name is missing" Mar 22, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 22, 2024
Copy link

melvin-bot bot commented Mar 22, 2024

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

Copy link

melvin-bot bot commented Mar 22, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 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 2024-03-29. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Mar 22, 2024

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:

  • [@iwiznia] The PR that introduced the bug has been identified. Link to the PR:
  • [@iwiznia] 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:
  • [@iwiznia] 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:
  • [@bernhardoj / @aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@bernhardoj / @aimane-chnaif] 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.
  • [@laurenreidexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2024
@iwiznia
Copy link
Contributor

iwiznia commented Apr 1, 2024

@laurenreidexpensify seems we need to pay this

@laurenreidexpensify laurenreidexpensify added Daily KSv2 and removed Weekly KSv2 labels Apr 2, 2024
@melvin-bot melvin-bot bot removed the Overdue label Apr 2, 2024
@laurenreidexpensify
Copy link
Contributor

was OOO for Easter and the automation failed to update this to a daily for me, reviewing now

@laurenreidexpensify
Copy link
Contributor

Payment Summary:

@laurenreidexpensify
Copy link
Contributor

@bernhardoj @aimane-chnaif do we need a regression test?

@bernhardoj
Copy link
Contributor

If there is no regression step yet, I think we need one. Taken from the PR QA Steps:

  1. Open a workspace bank account page
  2. Select "Connect online with Plaid"
  3. Select Chase bank account
  4. Press Continue with Login. A new web window will open
  5. Verify there is no Link OAuth error message

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

6 participants