| Summary: | [RMS] Wrong filename for rapdemo.war download | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | RĂ¼diger Herrmann <ruediger.herrmann> |
| Component: | Demo | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | vasko |
| Version: | 1.3 | ||
| Target Milestone: | 1.3 M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://rap.eclipsesource.com/rapdemo/rms | ||
| Whiteboard: | |||
|
Description
RĂ¼diger Herrmann
This links points to a static resource, served by Tomcat's Default Servlet.
The problem is that the response does not contain Content-type header. IE is doing some "MIME-sniffing" and changes the extension to zip.
The solution is to add the following declaration to $CATALINA_HOME/conf/web.xml
<mime-mapping>
<extension>war</extension>
<mime-type>application/zip</mime-type>
</mime-mapping>
Tomcat will send the correct header "Content-Type: application/zip" and IE will accept the war extension.
Added the the proposed declaration, but not to the global web.xml, but to the download application's web.xml. |