-
Notifications
You must be signed in to change notification settings - Fork 11.8k
fix: upload of malformed jpegs with Message_Attachments_Strip_Exif disabled fails silently #35839
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
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: bff8ede The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35839 +/- ##
===========================================
+ Coverage 64.62% 64.77% +0.15%
===========================================
Files 3244 3093 -151
Lines 95388 92144 -3244
Branches 17851 17517 -334
===========================================
- Hits 61643 59689 -1954
+ Misses 30849 29703 -1146
+ Partials 2896 2752 -144
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
May be worth looking into sharp 0.34: lovell/sharp#3947 (comment) |
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…nto SUP-769-Image-Upload-Display-Error-Message-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…nto SUP-769-Image-Upload-Display-Error-Message-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
@kody start-review |
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, don't forget to add a changeset
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
apps/meteor/client/views/room/body/UploadProgress/UploadProgressIndicator.tsx
Outdated
Show resolved
Hide resolved
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
Co-authored-by: Douglas Fabris <[email protected]>
Co-authored-by: Douglas Fabris <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changes the selector for identifying image upload errors. This avoids relying on specific text content and improves the robustness of the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
…e-on-Failure-Silent-Fail-for-Specific-JPEGs-ufs-VipsJpeg-errors
Proposed changes (including videos or screenshots)
Issue(s)
SUP-769
Steps to test or reproduce
Further comments
Description
This pull request addresses an issue in the Rocket.Chat repository where image uploads were failing for specific JPEG files. The problem only occurs when Message_Attachments_Strip_Exif is set to false (current default is true). Some of the upload logic which uses xhr also needed tweaking, and the frontend side needed to display the error.