[ http://issues.apache.org/jira/browse/COCOON-328?page=all ] Helma van der Linden reopened COCOON-328: -----------------------------------------
reopened just to set the resolution to fixed > Cannot set MIME type for ResourceReader > --------------------------------------- > > Key: COCOON-328 > URL: http://issues.apache.org/jira/browse/COCOON-328 > Project: Cocoon > Type: Bug > Components: - Components: Sitemap > Versions: 2.0.3 > Environment: Operating System: other > Platform: Other > Reporter: J.Pietschmann > Assignee: Cocoon Developers Team > > The getMimeType gets the MIME type straight from the environment context, > this is the servlet context for HTTP. This is somewhat surprising given that > the sitemap for the Cocoon webapp contains entries like > <map:match pattern="cocoon.gif"> > <map:read mime-type="image/gif" src="welcome/cocoon.gif"/> > </map:match> > The mime-type attribute here is completely ignored. > I need a possibility to set the MIME type for a .jar reader to > application/octet-stream, because Netscape4 interprets the MIME configured > in Tomcat4 for .jar files, application/java-archive, as SmartUpdate, and > this prevents users from downloading .jar files in certain circumstances. > I suspect configuring JARs as application/octet-stream globally in Tomcat > will interfere with applets, therefore I'd prefer a more local solution. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira