Bug 61047 - Missing MIME type for woff2 fonts
Summary: Missing MIME type for woff2 fonts
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: trunk
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-27 02:14 UTC by Justin Williamson
Modified: 2017-05-04 06:29 UTC (History)
0 users



Attachments
Patch for Tomcat7 (515 bytes, patch)
2017-05-02 00:40 UTC, Justin Williamson
Details | Diff
Patch for Tomcat8 (515 bytes, patch)
2017-05-02 00:40 UTC, Justin Williamson
Details | Diff
Patch for Tomcat8.5 (515 bytes, patch)
2017-05-02 00:40 UTC, Justin Williamson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Williamson 2017-04-27 02:14:15 UTC
According to WC3, the mime-type for .woff2 fonts should be font/woff2 according the specification released in 2016 (source:
 https://www.w3.org/TR/WOFF2/#IMT); however this is currently unregistered in conf/web.xml.

This affects all versions of Tomcat, including 9.x/trunk.
Comment 1 Justin Williamson 2017-05-02 00:40:19 UTC
Created attachment 34968 [details]
Patch for Tomcat7
Comment 2 Justin Williamson 2017-05-02 00:40:38 UTC
Created attachment 34969 [details]
Patch for Tomcat8
Comment 3 Justin Williamson 2017-05-02 00:40:56 UTC
Created attachment 34970 [details]
Patch for Tomcat8.5
Comment 4 Violeta Georgieva 2017-05-04 06:29:39 UTC
Hi,

Thanks for the report and the patches.
The fix was committed in:
- trunk for 9.0.0.M21 onwards
- 8.5.x for 8.5.15 onwards
- 8.0.x for 8.0.44 onwards
- 7.0.x for 7.0.78 onwards

Regards,
Violeta