Open kavimuru opened 2 months ago
Triggered auto assignment to @abekkala (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
:wave: 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:
Triggered auto assignment to @cristipaval (Engineering
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
@cristipaval 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.
Unable to repro this.
@kavimuru can you share the console/ networks tab to see what was the error of the API call?
From the logs, it seems like we were not able to verify the name and date of birth and hence it failed Please verify your name and date of birth. If the information is correct
Is this supposed to work for other than the Alberta Bobbeth Charleson names?
I think this can be demoted, but wont do so until its the last blocker
I could reproduce this, and I have similar logs It's the error stated by @mountiny above. I think we should show a better error message, but I wouldn't block the deploy on this.
Confirmed with @MariaHCD this is expected given if we use different name than Alberta Charleson the checks are being done so in this case it fails.
I agree with Cristi that better error should be shown, not sure if you want to handle that here, I assume we can add this to Wave collect as polish
@abekkala, @cristipaval Huh... This is 4 days overdue. Who can take care of this?
Job added to Upwork: https://www.upwork.com/jobs/~01f8390f05597b3838
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External
)
Proposing the solution based on comments by @mountiny
Unable to confirm on double check Personal info page, error appears
Over here we only Validate the values against the Regex
, but don't check if the values match the already existing legal name on profile page.
https://github.com/Expensify/App/blob/e34f10ec01a21ecddebc4b12c721705ba7bd514d/src/pages/ReimbursementAccount/PersonalInfo/substeps/FullName.tsx#L31-L41
I propose we show the error on the Full Name
page itself, this will avoid further confusion.
if (values.firstName && !ValidationUtils.doesLegalFirstNameMatchProfile(values.firstName)) {
errors.firstName = 'bankAccount.error.legalFirstNameDoesNotMatch';
}
if (values.lastName && !ValidationUtils.doesLegalLastNameMatchProfile(values.lastName)) {
errors.lastName = 'bankAccount.error.legalLastNameDoesNotMatch';
}
We need to define the text for legalFirstNameDoesNotMatch
and legalLastNameDoesNotMatch
for both engilsh and spanish languages.
The doesLegalFirstNameMatchProfile
and doesLegalLastNameMatchProfile
util function will check if the current name value matches with the previously stored legal name on profile page.
Note: If no legal name is stored on profile page, then we can return true in the util functions
N/A
The user is not able to confirm on double check Personal info page.
In here, here and here, we're only showing generic error when Onfido error occurs.
If the Onfido error returned here (and similar places) has user-readable part, we should show it in the Growl instead of the translate('onfidoStep.genericError')
. From my testing on web, it does return a user-readable message in the onError
, so we can probably use it as is.
If not and it's only an error code, we should map the error code to a user-readable error in client side and show in Growl.
If there's no error content provided, we can fallback to the generic error.
NA
I'm not able to reproduce this. Anyone able to reproduce on main
?
Was able to reproduce on staging :
https://github.com/Expensify/App/assets/110545952/3934680c-5403-45f0-9d92-c00ba956d31b
I think we want the errors from Onfido, not our own validation in this case
ahh, I see
Triggered auto assignment to @garrettmknight (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
@garrettmknight I'm ooo until April 08 - I'll be taking back any issues taht are still Open once I return.
Issue is still being reviewed and looking for a suitable proposal for fix.
@mountiny Is this supposed to be internal?
Sorry I missed to re-test this. Turns out this is not reproducible on dev. But I'm able to reproduce on production/staging
@GandalfGwaihir Thanks for the proposal. Unfortunately it aims to achieve something different than the expected behaviour
@tienifr Thanks for the proposal. Your RCA is correct. The solution looks good to me.
π π π C+ reviewed Link to proposal
Current assignee @cristipaval is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
π£ @s77rt π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @tienifr π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
I'm sorry I linked the wrong issue.
PR ready for review https://github.com/Expensify/App/pull/39012.
I'm back from ooo and taking this one back
PR has not been merged yet
I found the root problem of this: The Content-Security-Policy set in the backend is lacking
https://sdk.onfido.com/v14/Onfido.is
endpoint: This happens on both staging and production. This is very critical since access to Onfido SDK is no longer working. And this requires a fix the backend. There's a suggested solution by Onfido here. It has nothing to do with the personal data.
@mountiny @cristipaval We found the root cause of this issue is about Content-Security-Policy
. I think that is a very critical issue happening on production and needs immediate action.
Also, we don't need to show Onfido errors because:
So I think we can close the PR and fix root cause in the BE as mentioned above.
Created an internal PR to address this https://github.com/Expensify/Cloudflare-Workers/pull/137/files
@tienifr @s77rt can you please retest now? the backend fix should be out
@mountiny https://sdk.onfido.com
was added to the style-src
whitelist. It should be script-src
Thanks, waiting for deployment of the update π€¦
Its correct for adhoc builds only, overlooked that the assets.onfido been for style-src as well as script-src
The fix is live on production. I remembered the font issue was already handled somewhere else π€ Just want to ask if I and @s77rt got compensated because large efforts were put into PR implementation, review, testing and finding the RCA of this issue.
@mountiny Could you please check the above ^ when you had time?
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.51-1 Reproducible in staging?: y Reproducible in production?: no If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4418483 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:
Pre-requisite: the user must be logged in and have created a Workspace.
Expected Result:
The user should be able to confirm on double check Personal info page and proceed to Onfido flow.
Actual Result:
The user is not able to confirm on double check Personal info page.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/43996225/a8c34176-3694-4853-bc83-5e322cd830b2
View all open jobs on GitHub
Upwork Automation - Do Not Edit