-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Attachment - No feedback or error message when choosing invalid image file to be sent on chat #19728
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.For corrupt files, we're showing an infinite loader in the Attachment View. What is the root cause of that problem?The root cause of this issue is that we're not validating the file types correctly (based on the magic headers, more about this approach in the alternate section). This causes corrupt files to go through to the What changes do you think we should make in order to solve the problem?The simplest solution (without magic header check) is to add a What alternative solutions did you explore? (Optional)The real solution for this sort of issue IMO is to check the file type based on magic headers of the file instead of relying on the file type extracted from the name. The code for this was added in this PR some time ago but the team decided not to add frontend validation of files until another issue came up. For reference, here's how Slack deals with a |
Job added to Upwork: https://www.upwork.com/jobs/~01764cde9077e5564b |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Triggered auto assignment to @marcaaron ( |
👍 adding External label |
ProposalPlease re-state the problem that we are trying to solve in this issue.When attach an invalid image file, the AttachPreview shows an infinite loading without showing any error What is the root cause of that problem?We're using the Image component defined here in our ImageView component. The root cause of this issue is that we don't use App/src/components/ImageView/index.js Lines 244 to 254 in d661708
App/src/components/ImageView/index.js Lines 283 to 290 in d661708
In addition, we didn't explicitly add What changes do you think we should make in order to solve the problem?We have to add
and show error message instead of loading indicator. Resultmac_chrome_19728.mp4What alternative solutions did you explore? (Optional) |
@aimane-chnaif can you take a look at the proposals so far? |
The root cause is correct in both proposals. |
@aimane-chnaif What if a file is marked valid in our engine but can't be shown in |
@s-alves10 I can't think of that case but we can show placeholder icon. That will be consistent with preview after sent to chat. Btw your proposal is already a dupe and won't be accepted unless you have better solution. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@aimane-chnaif can you summarize what you think we should do for this one? When you believe we're ready to move forward with something I will share my thoughts on that proposal, thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The bug is that when the user attaches an image file that is invalid or corrupted, the app tries to display a preview of the image and takes forever. The expected behavior is that the app should display a feedback or error message indicating that the file is not valid, or just upload and send the file as a file without trying to display a preview. What is the root cause of that problem?The root cause of the problem is we are not handling onError well on the App/src/components/ImageView/index.js Lines 244 to 254 in d661708
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
This issue has not been updated in over 15 days. @MariaHCD, @sonialiap, @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! |
@youssef-lr I am not sure how to check, has this PR been opened to contributors? #23103 (comment) |
@MariaHCD, @sonialiap, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
@MariaHCD, @sonialiap, @aimane-chnaif Huh... This is 4 days overdue. Who can take care of this? |
@MariaHCD, @sonialiap, @aimane-chnaif 12 days overdue now... This issue's end is nigh! |
PR is in review. @youssef-lr is OOO until the end of Nov |
@MariaHCD, @sonialiap, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@MariaHCD, @sonialiap, @aimane-chnaif Huh... This is 4 days overdue. Who can take care of this? |
@MariaHCD, @sonialiap, @aimane-chnaif 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
Hopefully @youssef-lr will finish PR soon |
@MariaHCD, @sonialiap, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@MariaHCD, @sonialiap, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
Sorry, I'm working on higher priority issues. But I should pick this up again either this week or the next one. |
This issue has not been updated in over 15 days. @youssef-lr, @sonialiap, @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! |
@youssef-lr, @sonialiap, @aimane-chnaif, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
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:
Expected Result:
The app should display a feedback or error message indicating that the file is not valid or just upload and send as a file without trying to display preview(if the image file is invalid)
Actual Result:
The app does not show any feedback or error message and tries to preview the image file with infinite loading
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.19.2
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
no.feedback.mp4
Recording.2865.mp4
Expensify/Expensify Issue URL:
Issue reported by: @KALLL
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685001824882209
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: