Open lanitochka17 opened 1 week ago
Triggered auto assignment to @Christinadobrzyn (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
I don't think we're working on Wallet right now. Asking the team - https://expensify.slack.com/archives/C06ML6X0W9L/p1730866894043029
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
Taking convo to quality - https://expensify.slack.com/archives/C05LX9D6E07/p1730884730445159
bumping convo in quality - https://expensify.slack.com/archives/C05LX9D6E07/p1730963737370759
Job added to Upwork: https://www.upwork.com/jobs/~021854481819415295170
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 (External
)
Wallet - Statement is not downloaded
There are 3 problems according to Actual Result.
Tab with month statement is opened. Placeholder instead of info is displayed
We are passing the url
to WalletStatementModal
modal.
https://github.com/Expensify/App/blob/1cdd204f473865b8185489d30a0a1a11a8e6dd60/src/pages/wallet/WalletStatementPage.tsx#L82
https://github.com/Expensify/App/blob/1cdd204f473865b8185489d30a0a1a11a8e6dd60/src/components/WalletStatementModal/index.tsx#L44
CONFIG.EXPENSIFY.EXPENSIFY_URL
is https://www.expensify.com/
, btw seems like there are 3 sites (https://we.are.expensify.com, www.expensify.com, https://new.expensify.com) in white list on backend side.
The problem is when sending url to server, www.expensify.com didn't change to https://www.expensify.com.
So we are getting this error;
Refused to frame 'https://www.expensify.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://we.are.expensify.com www.expensify.com https://new.expensify.com".
Statement is not downloaded This is the download url; https://github.com/Expensify/App/blob/1cdd204f473865b8185489d30a0a1a11a8e6dd60/src/pages/wallet/WalletStatementPage.tsx#L58 The problem is there is no pdf.
New browser tab expensify.com is opened
https://github.com/Expensify/App/blob/1cdd204f473865b8185489d30a0a1a11a8e6dd60/src/pages/wallet/WalletStatementPage.tsx#L58
The problem is CONFIG.EXPENSIFY.EXPENSIFY_URL
is https://www.expensify.com, so this app is opening expensify.com.
https://www.expensify.com
) instead www.expensify.com
in white list.pdfURL
like following;
${CONFIG.EXPENSIFY.EXPENSIFY_URL}
=> ${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}
N/A
Your Expensify account email: anasup1995@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~01aff093c9a804b145
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
We're going to set this external to see if there are some suggestions to fix this. @dukenv0307 can you please review the proposal when you have a moment. Thank you!
I can't reproduce 2 last points
Tab with month statement is opened. Placeholder instead of info is displayed Statement is not downloaded New browser tab expensify.com is opened
@Anaslancer What about you?
@dukenv0307 Strange, the pdf is downloaded now but didn't work 8 hours. And I think we should open ND in new tab. @lanitochka17 Is it right?
When downloading we are using this url below;
const pdfURL = ${CONFIG.EXPENSIFY.EXPENSIFY_URL}secure?secureType=pdfreport&filename=${fileName}&downloadName=${downloadFileName}
;
At the moment, if a user already logged in to OD in same browser, the new tab don't open and just download.
If not, we open the OD in a new tab for getting the user's auth.
For avoiding this (I mean for using the current user's auth of the ND), we can set ${CONFIG.EXPENSIFY.EXPENSIFY_URL}
to ${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}
. But ND has the same feature (creating a pdf and downloading) like OD.
@lanitochka17 might not be quick to respond as we usually communicate in Slack so let me know if I can help with relaying anything or if we should have QA test again.
@Christinadobrzyn tester is still reproducible issue
https://github.com/user-attachments/assets/bc8ed37a-00ee-4526-99aa-94778673398c
That might be the reason
@Christinadobrzyn, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
ah interesting catch @lanitochka17 - testing again. I have a wallet setup in my test account c.dobrzyn+89@expensifail.com
and I see the statement isn't loading and nothing is downloaded. @dukenv0307 @Anaslancer can you test?
https://github.com/user-attachments/assets/3000dc72-c497-49a4-be84-947bd90c1e7a
nudge to @dukenv0307 or @Anaslancer can you test this again to make sure you can reproduce this?
@Christinadobrzyn, @dukenv0307 Huh... This is 4 days overdue. Who can take care of this?
I'm trying to enable wallet. I just faced with the 666 BE error this morning
@Christinadobrzyn I found the thread that mentioned this problem: https://expensify.slack.com/archives/C01GTK53T8Q/p1723032105269869?thread_ts=1711049879.962529&cid=C01GTK53T8Q seems like we can't use the test wallet
We should make it internal
Ah thanks @dukenv0307 - changed this to internal. going back to this convo to see if someone has the bandwidth for this - https://expensify.slack.com/archives/C05LX9D6E07/p1731559170624659?thread_ts=1730884730.445159&cid=C05LX9D6E07
looking for an internal volutneer
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: 9.0.57-7 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers): applausetester+bp2510@applause.expensifail.com Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/51626
Action Performed:
Precondition: account with enabled wallet.
Expected Result:
Actual Result:
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/79ffab32-7d2c-4e26-b861-93123bdc544d
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dukenv0307