App icon indicating copy to clipboard operation
App copied to clipboard

Opening a unknown report from the URL displays a blank chat page and no error - Reported by: @parasharrajat

Open isagoico opened this issue 5 years ago โ€ข 30 comments

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:

  1. Log in with any account
  2. Navigate to a conversation
  3. 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

image

Expensify/Expensify Issue URL:

Issue reported by: @parasharrajat Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634244884298600

View all open jobs on GitHub

isagoico avatar Oct 15 '21 19:10 isagoico

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

MelvinBot avatar Oct 15 '21 19:10 MelvinBot

Proposal

  1. 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

  2. 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.

  3. 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.

parasharrajat avatar Oct 15 '21 19:10 parasharrajat

๐Ÿ‘ Looks good for UpWork, I agree with @parasharrajat. I don't think we need a call to the backend for this.

NikkiWines avatar Oct 15 '21 23:10 NikkiWines

Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Oct 15 '21 23:10 MelvinBot

@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

MelvinBot avatar Oct 19 '21 19:10 MelvinBot

Oops, seemed to have missed this. Sorry! Removed the n6-hold. Upwork job is here.

trjExpensify avatar Oct 19 '21 21:10 trjExpensify

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

MelvinBot avatar Oct 19 '21 21:10 MelvinBot

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.

deetergp avatar Oct 20 '21 18:10 deetergp

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:

botify avatar Oct 28 '21 20:10 botify

Ping for image

parasharrajat avatar Nov 05 '21 17:11 parasharrajat

Sent the offer, Raj! Can settle it once you've accepted. ๐Ÿ‘

trjExpensify avatar Nov 05 '21 20:11 trjExpensify

@trjExpensify Done.

parasharrajat avatar Nov 06 '21 02:11 parasharrajat

Ping for image

parasharrajat avatar Nov 08 '21 14:11 parasharrajat

Ping for image cc: @trjExpensify @mallenexpensify

parasharrajat avatar Nov 09 '21 15:11 parasharrajat

Hey Raj, I've been in the air travelling to the US. Back on now and settled this ๐Ÿ‘

trjExpensify avatar Nov 09 '21 17:11 trjExpensify

Reopening b/c the fix was reverted (due to a regression) here: https://github.com/Expensify/App/pull/6615

Beamanator avatar Dec 07 '21 12:12 Beamanator

Ok. Thanks @Beamanator . I will look into different ways.

parasharrajat avatar Dec 07 '21 12:12 parasharrajat

Haven't found anything on the first look. I will try to find one as soon as possible. Def, not a priority.

parasharrajat avatar Dec 15 '21 15:12 parasharrajat

No updates to report.

deetergp avatar Dec 27 '21 19:12 deetergp

No updates. Since this is apparently not a priority, I'm going to bump it down to Monthly.

deetergp avatar Jan 05 '22 18:01 deetergp