Details
Description
An ICEfaces application running in OC4j 10.1.3 Servlet container loaded with Firefox will present a user with a download dialog.
The ServeBlankPage class is responsible for serving up the content stream associated with the blank.iface stream but it doesn't add a context-type header to the response. OC4J is nice enough to add an application/octet-stream for us which causes FireFox to prompt the user for a download.
The ServeBlankPage class is responsible for serving up the content stream associated with the blank.iface stream but it doesn't add a context-type header to the response. OC4J is nice enough to add an application/octet-stream for us which causes FireFox to prompt the user for a download.
The fix for this looks to be pretty simple: add the proper content-type header to the ServeBlankPage response. This will have to be test to make sure that actually work for OC4J. Another alternative would be to change the name of the file to blank.html and most browsers would know what to do.
One last note this problem only seem to occur on FireFox.