Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Mime] switching source of mime types from Apache to "MIME-db"#37422

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromdesarrolla2:ticket_37412
Jul 15, 2020
Merged

[Mime] switching source of mime types from Apache to "MIME-db"#37422

nicolas-grekas merged 1 commit intosymfony:masterfromdesarrolla2:ticket_37412
Jul 15, 2020

Conversation

@desarrolla2
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?no
Deprecations?no
TicketsFix#37412
LicenseMIT
Doc PRno

@desarrolla2
Copy link
ContributorAuthor

desarrolla2 commentedJun 26, 2020
edited
Loading

I preferred to use the "v1.44.0" tag instead of master because they recommend it, since there may be json format changes in the future.

Maybe you prefer that I use master branch and this script fails, if format changes.

@fabpot
Copy link
Member

Great! Can you apply fabbot's patch? Also, can you run the script to see the diff with what we have now?

'audio/mp3' => ['mp3','mpga'],
'audio/mp4' => ['m4a','mp4a','f4a'],
'audio/mpeg' => ['mp3','mpga','mp2','mp2a','m2a','m3a'],
'audio/mpeg' => ['mpga','mp2','mp2a','mp3','m2a','m3a'],
Copy link
Member

@nicolas-grekasnicolas-grekasJun 26, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

related to#37389, mp3 should be first?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes, it's the most common format. You can also addmp1 like definedhere (page3).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@YaFou could you please report this tohttps://github.com/jshttp/mime-db? Maybe send them a PR also?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I will do that this evening!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

nicolas-grekas reacted with thumbs up emoji

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@YaFou can you revert this change, maybe adding a comment like// mp3 should be first
same in other places where I commented about ordering?
that'd allow unlocking this PR

Copy link
Member

@nicolas-grekasnicolas-grekasJun 30, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I meant@desarrolla2 sorry

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@nicolas-grekas do you want that:

a) I put the extensions in the order that you comment at MimeTypes.php
b) I update the script update_mime_types.php to force that order after download sources
c) I add comments with your suggestions at MimeTypes.php

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think b) would be good. Then the comments would be found in update_mime_types.php only.

'text/x-lyx' => ['lyx'],
'text/x-makefile' => ['mk','mak'],
'text/x-markdown' => ['md','mkd','markdown'],
'text/x-markdown' => ['mkd','md','markdown'],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

if the 1st is the most used, thenmd should be first?
does the order mean something in the source db?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

For reference, the source DB uses this preference for merging the multiple sources:

// source preference (least -> most)var preference = ['nginx', 'apache', undefined, 'iana']

'application/vnd.appimage' => ['appimage'],
'application/vnd.apple.installer+xml' => ['mpkg'],
'application/vnd.apple.keynote' => ['key'],
'application/vnd.apple.keynote' => ['keynote','key'],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

key should be first ?

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedJun 26, 2020
edited
Loading

Thanks for working on this.
About my comments above related to ordering, maybe we should send them to the upstream db?

@nicolas-grekasnicolas-grekas added this to thenext milestoneJun 30, 2020
@desarrolla2
Copy link
ContributorAuthor

should i rebase the commit to improve the history?

@stof
Copy link
Member

stof commentedJul 3, 2020

@desarrolla2 yes please

'msg' => ['application/vnd.ms-outlook'],
'msh' => ['model/mesh'],
'msi' => ['application/x-msdownload','application/x-msi'],
'msi' => ['application/octet-stream','application/x-msdownload','application/x-msi'],
Copy link
Member

@nicolas-grekasnicolas-grekasJul 4, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I've checked the source and I think we should always list'application/octet-stream' last.
Alternatively, we should just skip it. The reason is that we already fallback to'application/octet-stream' by default inDataPart. For sure, listing it first is going to be a regression.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@nicolas-grekas you prefer that:

a) I put 'application/octet-stream' last.
b) I skip 'application/octet-stream'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Skipping would be best IMHO

@fabpot
Copy link
Member

@desarrolla2 I've fixed your last commit.

@nicolas-grekas
Copy link
Member

Thank you@desarrolla2.

@nicolas-grekasnicolas-grekas merged commit5a61446 intosymfony:masterJul 15, 2020
@nicolas-grekasnicolas-grekas modified the milestones:next,5.2Oct 5, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@fabpotfabpotfabpot approved these changes

+2 more reviewers

@juanmradjuanmradjuanmrad left review comments

@YaFouYaFouYaFou left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

Consider using another source for MIME types

8 participants

@desarrolla2@fabpot@nicolas-grekas@stof@javiereguiluz@juanmrad@YaFou@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp