cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10277] New: - Cannot set MIME type for ResourceReader
Date Thu, 27 Jun 2002 11:40:24 GMT
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: cocoon-dev@xml.apache.org
        ReportedBy: j3322ptm@yahoo.de


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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message