Opening a unknown report from the URL displays a blank chat page and no error - Reported by: @parasharrajat
If you havenโt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Log in with any account
- Navigate to a conversation
- In the URL, change the report number to something random
Expected Result:
There should be an error about being unable to navigate to that report and user should be redirected to last chat.
Actual Result:
Blank conversation is displayed.
Workaround:
N/A.
Platform:
Where is this issue occurring?
- Web
- Mobile Web
Version Number: 1.1.8-0
Reproducible in staging?: Yes Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634244884298600
Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Proposal
-
Current code handles the empty param but it does not handle reports that do not exist. https://github.com/Expensify/App/blob/dcfde19a4c74512f894f4cffe3a038ac49fad75b/src/pages/home/ReportScreen.js#L150
-
We should check if the report prop contains data such as
reportID. If it does not have that data it means that report does not exists and then we should run the same logic as it does now. -
I don't think a call to the backend is needed to check if the report exists are all the reports are synced on Onyx before the screen is loaded.
๐ Looks good for UpWork, I agree with @parasharrajat. I don't think we need a call to the backend for this.
Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Oops, seemed to have missed this. Sorry! Removed the n6-hold. Upwork job is here.
Triggered auto assignment to @deetergp (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Let's go with @parasharrajat proposal. The this.props.report.reportID property is present for valid reportIDs and not present for invalid ones so it seems like a solid check and the right place to do it.
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.10-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/5964
If no regressions arise, payment will be issued on 2021-11-04. :confetti_ball:
Ping for

Sent the offer, Raj! Can settle it once you've accepted. ๐
@trjExpensify Done.
Ping for

Ping for
cc: @trjExpensify @mallenexpensify
Hey Raj, I've been in the air travelling to the US. Back on now and settled this ๐
Reopening b/c the fix was reverted (due to a regression) here: https://github.com/Expensify/App/pull/6615
Ok. Thanks @Beamanator . I will look into different ways.
Haven't found anything on the first look. I will try to find one as soon as possible. Def, not a priority.
No updates to report.
No updates. Since this is apparently not a priority, I'm going to bump it down to Monthly.