Repository navigation
Description
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 #27739
Action Performed:
Prerequisites: Must be performed on a small screen.
Scenario 1: Requesting money from a person with no prior chat history:
- Navigate to https://staging.new.expensify.com/
or open the app - Tap on the green plus button
- Select ''Request money''
- Enter any amount and tap ''Next''
- Search and select a person with no prior chat history
Scenario 2: Requesting money from a person with prior chat history
- Navigate to https://staging.new.expensify.com/
or open the app - Tap on the green plus button
- Select ''Request money''
- Enter any amount and tap ''Next''
- Search and select a person with prior chat history
Expected Result:
The user can request money from someone without problems.
Actual Result:
The app crashes regardless of whether you request money from someone with a previous chat history or no chat history.
Workaround:
Unknown
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.73-0
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
Bug6210996_mweb_-_with_no_chat_history.mp4
Bug6210996_mWeb_-_with_chat_history.mp4
utest-dl.s3.amazonaws.com_12102_26469_428866_6210996_bugAttachment_Bug6210996_logs_-mWeb-Request_money-_logs.txt_X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230923T070152Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Cre.txt
utest-dl.s3.amazonaws.com_12102_26469_428866_6210996_bugAttachment_Bug6210996_logs_iOS_app.txt_X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230923T070121Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AKIAJ2UIWMJ2OM.txt
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01336470a7c7cb2d2a
- Upwork Job ID: 1706893852320518144
- Last Price Increase: 2023-09-27
Activity
melvin-bot commentedon Sep 23, 2023
Triggered auto assignment to @tjferriss (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)akinwale commentedon Sep 23, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The app crashes when trying to request money from someone with or without a chat history.
What is the root cause of that problem?
The withOnyx definition in the MoneyRequestConfirmPage component used for obtaining the policy key tries to get the policyID of a workspace from a report, even if the report is null.
App/src/pages/iou/steps/MoneyRequestConfirmPage.js
Lines 380 to 384 in 5aa7f6d
What changes do you think we should make in order to solve the problem?
Change the
withOnyxdefinition so that it returns an empty string if report is null usinglodashGetto retrieve the object property.What alternative solutions did you explore? (Optional)
None.
tjferriss commentedon Sep 25, 2023
I'm not able to reproduce. I'm able to request money from both someone with or without chat history on iOS.
akinwale commentedon Sep 25, 2023
@tjferriss This is easily reproducible in iOS Safari and native on the latest main branch.
kbecciv commentedon Sep 26, 2023
Issue have been reproduced with one of the Contributor, reopening for review.
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695716172410089
2 remaining items
melvin-bot commentedon Sep 27, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01336470a7c7cb2d2a
melvin-bot commentedon Sep 27, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu (
External)[-][$500] iOS/mWeb - The app crashes when requesting money from someone with a chat history or no prior chat[/-][+][$1000] iOS/mWeb - The app crashes when requesting money from someone with a chat history or no prior chat[/+]melvin-bot commentedon Sep 27, 2023
Upwork job price has been updated to $1000
mountiny commentedon Sep 27, 2023
This should have been a deploy blocker and more attention given to testing as now this crash is in production.
@burczu Can you please treat this one with priority and pick proposals/ review quickly. THanks!
situchan commentedon Sep 27, 2023
Not able to reproduce on latest main.
akinwale commentedon Sep 27, 2023
Looks like it was fixed with #28199.
mountiny commentedon Sep 27, 2023
Alright, I cannot repro in staging anymore even though the PR you have linked is not in staging yet, havent tested with no prior chat history account
akinwale commentedon Sep 27, 2023
@mountiny It still happens on staging if there's no prior chat history.
mountiny commentedon Sep 27, 2023
is it happening in production too? if yes we can probably close as its fixed in main and it will be fixed with a deploy
akinwale commentedon Sep 27, 2023
Yes, it is.
mountiny commentedon Sep 27, 2023
In that case I will close this issue. Thanks for help @akinwale