-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$1000] mWeb safari - attachments from Concierge don't download #19965
Comments
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
Started the testing for this one too. |
Firstly, let's confirm whether the issue occurs exclusively with Concierge attachments. Based on my understanding, this seems to be the case. The existing App/src/libs/fileDownload/index.js Lines 10 to 12 in 56379d1
When the download button is pressed, a App/src/libs/fileDownload/index.js Lines 40 to 42 in 56379d1
However, this approach encounters limitations with certain browsers that may block attempts to open files in a new window, especially when the URL's origin differs from that of the initiating window. To overcome these limitations, I propose the development of a dedicated "Download" component that would function similarly to an Anchor tag on the web. By rendering an anchor tag in the document and triggering it to download the file, we establish a more robust strategy. This approach allows the browser to "see" the actual path (external origin) from which the user is initiating the file download. Finally, we may need to consider the CORS configuration of the S3 bucket. Depending on the current configuration, it might block the site from downloading the file. In such a scenario, adjusting the CORS configuration on the S3 bucket to allow requests from the Expensify App's domain could resolve the issue. |
@strepanier03 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@trjExpensify - I'm able to recreate this so I'm sending external, which I believe is the right move. If you have any other thoughts or feedback let me know. |
Job added to Upwork: https://www.upwork.com/jobs/~01471efa1f7f540ed7 |
Current assignee @strepanier03 is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
Triggered auto assignment to @jasperhuangg ( |
Yep, I think that's right and let's start with a review of @kidroca's proposal here. As we're talking about the config of the S3 bucket, going to CC you @justinpersaud for vis incase there's any overlap here with the server migration project. |
@0xmiroslav - Proposal ready for your review here. |
@0xmiroslav any thoughts on the proposal here?? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I got help from Concierge so now have s3 attachment links. Reviewing proposal shortly. |
@strepanier03 @jasperhuangg @0xmiroslav this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@kidroca, @kevinksullivan, @jasperhuangg, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
1 similar comment
@kidroca, @kevinksullivan, @jasperhuangg, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Update:
To ensure the PR is complete and testable across all platforms, I'll need to address and fix this newly identified bug. |
@kidroca Thanks for the update! I commented in the other issue. We'll have the contributor who introduced the regression fix it. |
@jasperhuangg
Awaiting your guidance on the way forward. |
I think this makes sense. We can make a note in the other PR that they'll need ensure that they test the flows introduced in this issue as well.
I definitely think you're eligible for a reporting bonus here. cc @kevinksullivan for visibility! |
Sorry for delving into this perhaps more than necessary, but it seems less than ideal in this case to ask the original contributor to address the regression in a separate PR. I've already brought up the regression on the original PR, and the contributor suggested the same changes I already applied in this commit: 5b28515ca30c74bcbd0033fa2d16bdf1591df9a5 Do we really want me to revert my fix and let the original contributor apply the same fix in a separate PR? It seems like this might create unnecessary complexity and redundancy. I'm open to following the agreed-upon process, but I wanted to bring this to your attention in case there's a more efficient way to handle this situation |
@kidroca there's another regression from that PR - #25491 (comment) |
Hey guys, it seems the work here has stalled due to the regressions found. There doesn't seem to be anything that I can do at this moment. My PR was published a few days ago, and it appears we'll have to wait for the Android/iOS fixes before it's reviewed. |
The holding PR was deployed to production. |
Thank you, @aimane-chnaif. However, the PR you mentioned only addresses one of the existing regressions.
To clarify, the "another" regression you're referring to—concerning file names with illegal characters—is the one resolved just now.
It seems that the regression issue remains unaddressed and inactive. A separate ticket has been created for it: Expensify/App#26328. I'd like to highlight that my existing PR #25556 offers a ready-to-deploy fix for this issue. Although the initial plan was for the original author to submit a new PR, there has been no progress on that front. My PR contains a one-line fix that could expedite the resolution of this issue. |
This issue has not been updated in over 15 days. @kidroca, @kevinksullivan, @jasperhuangg, @aimane-chnaif eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Hey team, I've been away since September 15th and just noticed that this issue is still pending. For context, you can refer to my earlier comment. Could we get an update on the following: Has the original contributor managed to fix the regression? Thank you! |
I am not sure but if that regression still happens, I think we can fix together. |
Thanks @aimane-chnaif, I synced with |
@kevinksullivan this is ready for payment. |
@aimane-chnaif @kidroca the previous offer expired, so can you let me know when you accept the new offer? |
I'm part of the program for payments through App, so I'll open a request there |
Reviewed @kidroca's invoice as part of this issue. I approve payment. |
Ah ok, sorry about that. I'll close this out if we're all set then. |
@kevinksullivan my payment is remaining |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
All attachments should be downloadable. Note that due to CORS, locally these might open in a new window.
Actual Result:
Attachments don't download
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.21-2
Reproducible in staging?: Y
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Found when executing the QA of this PR but might not be related.
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://github.com/Expensify/App/assets/16232057/79dd7048-d035-40db-91cb-8e48b5cddcae
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation:
CC: @kidroca @hayata-suenaga
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: