Bug 61047

Summary: Missing MIME type for woff2 fonts
Product: Tomcat 7 Reporter: Justin Williamson <epicoxymoron>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch for Tomcat7
Patch for Tomcat8
Patch for Tomcat8.5

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

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