Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368463 - MIME-types of web-resource from the ResourceServlet not configurable
Summary: MIME-types of web-resource from the ResourceServlet not configurable
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 11:26 EST by Ralph Steiner CLA
Modified: 2021-08-19 11:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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