Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3718

Missing mime mappings

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

Details

    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
          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.

       

       

       

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rzo1 Richard Zowalla
            jeanjean KON-SUN-TACK
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 20m
              20m

              Slack

                Issue deployment