https://issues.apache.org/bugzilla/show_bug.cgi?id=44527
Summary: window.open() for mime extensions does not work with
security constraints.
Product: Tomcat 5
Version: 5.5.9
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
With security constraints set up, I have noticed that the javascript
window.open () does not work properly when calling a local program (such as
Acrobat Reader, MS-Word, notepad …) through Mime extensions. With PDF files,
the new window opens and displays a blank page. With MS-Word, notepad …, an
error occurs saying (translated in English) : Internet Explorer cannot download
the file xxxxx from xxxxx. The page requested is unavailable or cannot be
found.
Code example :
function ouvrir (pdf) {
window.open (pdf, 'fenetre', 'location=no,menubar=yes,resizable=yes') ;
}
<a href="javascript:ouvrir('prt/<%= pdfName %>')<%= pdfName %></a>
Some tests show the following :
- The problem occurs equally with IE7 and IE6.
- showModalDialog does not work neither.
The problem does not occur :
- if window.open () is used to open a simple HTML (or a JSP) page.
- If the document opens in the current page <a href=”xxx”>
- If window.open () is replaced by <a href=”xxx”
target=”_blank”>.
One thing is sure : if the security constraints are removed (I am using
JDNDIRealm ldap for authentication), window.open() works well in all the cases.
Many thanks for your feedback !
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]