Skip to content
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

Ignore (wrong) webp mime-type from S3 #1773

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

kelson42
Copy link
Collaborator

@kelson42 kelson42 commented Feb 8, 2023

Fixes #1772

Root cause of the problem seems not a broken code but wrong values in the S3. Many PNG/JPG images have a mime-type of image/webp in S3 which is wrong. I guess that during the developement of milestone 1.12.0 a regression has been introduced at some point and then fixed. But it was long enough there that test runs have polluted the bucket. With this fix it should work and after a bit, we could remove the patch from our source code because (most?) values should be fixed in the S3.

@kelson42 kelson42 requested a review from uriesk February 8, 2023 16:34
@kelson42 kelson42 marked this pull request as ready for review February 8, 2023 16:35
@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Base: 69.58% // Head: 69.53% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (c31cd31) compared to base (2b7d233).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1773      +/-   ##
==========================================
- Coverage   69.58%   69.53%   -0.06%     
==========================================
  Files          23       23              
  Lines        2581     2583       +2     
  Branches      589      590       +1     
==========================================
  Hits         1796     1796              
- Misses        673      674       +1     
- Partials      112      113       +1     
Impacted Files Coverage Δ
src/Downloader.ts 59.25% <0.00%> (-0.37%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kelson42 kelson42 merged commit 3498510 into main Feb 9, 2023
@kelson42 kelson42 deleted the ignore-s3-web-mime-type branch February 9, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REGRESSION] A large number of images are missing in the most recent Wikipedias
1 participant