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
8273655: content-types.properties files are missing some common types #5506
Conversation
|
Webrevs
|
Mailing list message from Bernd Eckenfels on net-dev: In the Test List .xml is not mentioned, that looks like a major format. However I am not sure if it maybe needs extra handling because of possible different mime types for application/xml and text/xml? -- This change adds some common types to the content-type.properties files, notably .js, .css, and .jar, as well as some others. The duplicated entry for .zip is removed from the Windows properties file. ------------- Commit messages: Changes: https://git.openjdk.java.net/jdk/pull/5506/files PR: https://git.openjdk.java.net/jdk/pull/5506 |
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/unix/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
src/java.base/windows/classes/sun/net/www/content-types.properties
Outdated
Show resolved
Hide resolved
.xml is already contained in the properties files as such:
application/xml seems to be the default type as per RFC7303 [1], I think it should suffice in this context. Only the new types are added to the test. [1] https://datatracker.ietf.org/doc/html/rfc7303#section-4.1 |
@anthonyvdotbe Thanks for the comments, I incorporated them with one exception: I didn't add typescript (.ts) as it conflicts with MPEG transport stream on several platforms. A note on the test: I refactored it slightly to account for platform-specific type detection, for example in the case of .js, which is mapped to Testing: tier1-3 all clear. |
I don't understand why these files are platform-specific. |
I'm not an expert in the area, it's probably down to historic reasons? The Unix version would be for all Unix varieties, unless a more specific source file is provided (thanks to @Michael-Mc-Mahon). |
@FrauBoes This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 89 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
|
/integrate |
Going to push as commit 65ed0a7.
Your commit was automatically rebased without conflicts. |
This change adds some common types to the content-type.properties files, notably .js, .css, and .jar, as well as some others.
The duplicated entry for .zip is removed from the Windows properties file.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5506/head:pull/5506
$ git checkout pull/5506
Update a local copy of the PR:
$ git checkout pull/5506
$ git pull https://git.openjdk.java.net/jdk pull/5506/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5506
View PR using the GUI difftool:
$ git pr show -t 5506
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5506.diff