App icon indicating copy to clipboard operation
App copied to clipboard

Workspace - Clicking Manage cards takes user to 404 page

Open kavimuru opened this issue 5 years ago β€’ 17 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. Go to https://staging.new.expensify.com
  2. Log in with expensifail account
  3. Go to any Workspace
  4. Click on Manage Cards

Expected Result:

Clicking Manage Card button under Expensify Card is leading for the expensify.com

Actual Result:

Clicking on Manage Card button under Expensify Card is leading for 404 error

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.94-0 Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:

https://user-images.githubusercontent.com/43996225/132256665-86ecbc7a-44be-45a5-b71c-2b35a7a7889f.mp4

Expensify/Expensify Issue URL:

View all open jobs on GitHub

kavimuru avatar Sep 06 '21 19:09 kavimuru

: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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

OSBotify avatar Sep 06 '21 19:09 OSBotify

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

MelvinBot avatar Sep 06 '21 19:09 MelvinBot

Just looking at this now, not sure where this is caused yet. But its strange that the URL is this: image

And this is the only pr where we may have changed where we re-direct to? The strange bit in the middle /v/ASDF.../

https://github.com/Expensify/App/pull/4789/files#diff-7ba339cca3eda747a4a803353b2b9ec61d991ae1d3d52ee4726aa0d659308e1aR53

ctkochan22 avatar Sep 07 '21 01:09 ctkochan22

@cead22 Do you have any insights as to what may have gone wrong here? This is the last deploy blocker for New Expensify atm.

roryabraham avatar Sep 08 '21 16:09 roryabraham

I think its this PR: https://github.com/Expensify/App/pull/4789

  1. Manage card button is here - https://github.com/Expensify/App/blob/18031207e59c033c2343afd2f3dbedffb1cdba24/src/pages/workspace/WorkspaceCardPage.js#L96
  2. Runs openSignedInLink() here - https://github.com/Expensify/App/blob/18031207e59c033c2343afd2f3dbedffb1cdba24/src/pages/workspace/WorkspaceCardPage.js#L107
  3. And in this PR, we add this to the validate URL which might have fixed the original issue, but breaks this flow - https://github.com/Expensify/App/pull/4789/files#diff-7ba339cca3eda747a4a803353b2b9ec61d991ae1d3d52ee4726aa0d659308e1aR53

ctkochan22 avatar Sep 08 '21 16:09 ctkochan22

@tgolen as the reviewer can you buddy check me here?

ctkochan22 avatar Sep 08 '21 16:09 ctkochan22

Is the problem with the URL just that it's missing ? between the validateCode and exitTo?

image

roryabraham avatar Sep 08 '21 16:09 roryabraham

I think that's it, Rory. Yep! Looks like that was a bug introduced when the logic was moved out of ROUTES.js

tgolen avatar Sep 08 '21 16:09 tgolen

ahh yep that looks like its it. So should we just fix it then instead?

ctkochan22 avatar Sep 08 '21 16:09 ctkochan22

Looks like we were missing the / originally: https://github.com/Expensify/App/pull/4789/files#diff-fed84caebc7e71b17fe9ac17cd04c5ec5aa8ce8a9f2ddc2ad33eb77253560a2eL91

ctkochan22 avatar Sep 08 '21 16:09 ctkochan22

Hm, I still think it's missing the ?.

Before:

const exitToURL = exitTo ? `?exitTo=${exitTo}` : '';

After:

const exitToURL = url ? `exitTo=${url}` : '';

tgolen avatar Sep 08 '21 16:09 tgolen

:face-palm: yeah that was it.

When i'm getting it tested locally, its directing me to secure.expensify.com. But thats got to be some weird local config issue right? The code makes no sense that it would point there: lDnhiXjczz

ctkochan22 avatar Sep 08 '21 17:09 ctkochan22

Yeah, sounds like maybe some of your config files don't have the right settings. Sorry, I'm having some issues hunting down the constant for those URLs, but I think that's all it is.

tgolen avatar Sep 08 '21 17:09 tgolen

Tested on staging we are good

gYQ3XJz4EY

ctkochan22 avatar Sep 08 '21 18:09 ctkochan22

πŸš€ Deployed to production by @yuwenmemon in version: 1.0.94-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 08 '21 21:09 botify

πŸš€ Deployed to staging by @ctkochan22 in version: 1.0.94-2 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 08 '21 22:09 botify

πŸš€ Deployed to production by @yuwenmemon in version: 1.0.95-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 09 '21 21:09 botify