You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "KON-SUN-TACK (Jira)" <ji...@apache.org> on 2021/04/12 15:28:00 UTC
[jira] [Updated] (TOMEE-3718) Missing mime mappings
[ https://issues.apache.org/jira/browse/TOMEE-3718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
KON-SUN-TACK updated TOMEE-3718:
--------------------------------
Description:
Hi all,
When upgrading from TomEE 7.0.6 to 7.0.7, we faced the following error when serving TTF font files (in Chrome console):
_Failed to decode downloaded font: [http://host:port/my/path/some_font1.ttf|http://host:port/my/path/some_font1.ttf??]_
_localIndex.jsp:1 OTS parsing error: OS/2: misaligned table_
_Failed to decode downloaded font: [http://host:port/my/path/some_font2.ttf|http://host:port/my/path/some_font2.ttf??]_
_OTS parsing error: cmap: misaligned table_
Adding the following in /conf/web.xml solved the issue:
<mime-mapping>
<extension>ttf</extension>
<mime-type>font/ttf</mime-type>
</mime-mapping>
It appears that TomEE 7.0.7's /conf/web.xml is not in sync with Tomcat 8.5.50's one.
(same issue in TomEE 8.0.6 not being aligned with Tomcat 9.0.41 web.xml)
Regards,
Jean.
was:
Hi all,
When upgrading from TomEE 7.0.6 to 7.0.7, we faced the following error when serving TTF font files (in Chrome console):
??Failed to decode downloaded font: http://host:port/my/path/some_font1.ttf??
??localIndex.jsp:1 OTS parsing error: OS/2: misaligned table??
??Failed to decode downloaded font: http://host:port/my/path/some_font2.ttf??
??OTS parsing error: cmap: misaligned table??
Adding the following in /conf/web.xml solved the issue:
<mime-mapping>
<extension>ttf</extension>
<mime-type>font/ttf</mime-type>
</mime-mapping>
It appears that TomEE 7.0.7's /conf/web.xml is not in sync with Tomcat 8.5.50's one.
(same issue in TomEE 8.0.6 not being aligned with Tomcat 9.0.41 web.xml)
Regards,
Jean.
> Missing mime mappings
> ---------------------
>
> Key: TOMEE-3718
> URL: https://issues.apache.org/jira/browse/TOMEE-3718
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Core Server
> Affects Versions: 7.0.7, 8.0.6
> Environment: RHEL
> Java 8
> Reporter: KON-SUN-TACK
> Priority: Major
> Labels: mime-type, web.xml
>
> Hi all,
> When upgrading from TomEE 7.0.6 to 7.0.7, we faced the following error when serving TTF font files (in Chrome console):
> _Failed to decode downloaded font: [http://host:port/my/path/some_font1.ttf|http://host:port/my/path/some_font1.ttf??]_
> _localIndex.jsp:1 OTS parsing error: OS/2: misaligned table_
> _Failed to decode downloaded font: [http://host:port/my/path/some_font2.ttf|http://host:port/my/path/some_font2.ttf??]_
> _OTS parsing error: cmap: misaligned table_
> Adding the following in /conf/web.xml solved the issue:
> <mime-mapping>
> <extension>ttf</extension>
> <mime-type>font/ttf</mime-type>
> </mime-mapping>
> It appears that TomEE 7.0.7's /conf/web.xml is not in sync with Tomcat 8.5.50's one.
> (same issue in TomEE 8.0.6 not being aligned with Tomcat 9.0.41 web.xml)
> Regards,
> Jean.
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)