Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368463

Summary: MIME-types of web-resource from the ResourceServlet not configurable
Product: z_Archived Reporter: Ralph Steiner <steiner.ralph>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: Andreas.Hoegger
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ralph Steiner CLA 2012-01-12 11:26:18 EST
Build Identifier: All

When providing resources with the ResourceServlet, one can not add addtional mime-types. The mime-type of a file is determined with FileUtility.getContentTypeForExtension() which uses a static defined list of mime-types.
For example I cannot add the mime-type "text/cache-manifest" (by the way, this mime type should be added anyway to the static list).
Currently I use a workaround with reflection to add the mime-type.

Reproducible: Always
Comment 1 Andreas Hoegger CLA 2015-04-13 10:23:48 EDT
Historically removed.
-andreas