Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Mar 11, 2025

Summary

  1. mimetypes with a dot do not work with our mime detector (only checks last dot).
  2. all of those files are tar files compressed as gzip / bzip2 so the real mimetype of the file is the compression not the tar.

We could at max. set mime to application/x-tar+gzip.

Checklist

1. mimetypes with a dot do not work with our mime detector (only checks
   last dot).
2. all of those files are tar files compressed as gzip / bzip2 so the
   real mimetype of the file is the compression not the tar.

We could at max. set mime to `application/x-tar+gzip`.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added bug 3. to review Waiting for reviews labels Mar 11, 2025
@susnux susnux requested a review from a team as a code owner March 11, 2025 20:38
@susnux susnux requested review from Altahrim, icewind1991 and skjnldsv and removed request for a team March 11, 2025 20:38
@skjnldsv skjnldsv merged commit bada83a into master Mar 12, 2025
121 checks passed
@skjnldsv skjnldsv deleted the fix/mime branch March 12, 2025 07:48
@skjnldsv
Copy link
Member

/backport to stable31

@skjnldsv
Copy link
Member

/backport to stable30

@skjnldsv
Copy link
Member

/backport to stable29

@skjnldsv
Copy link
Member

skjnldsv commented Mar 12, 2025

EDIT: was a test

@backportbot

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Conflicting mimetype for gz/tar.gz files in mimetypemapping.dist.json

4 participants