DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10277>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10277 Cannot set MIME type for ResourceReader Summary: Cannot set MIME type for ResourceReader Product: Cocoon 2 Version: 2.0.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: sitemap components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]