tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44527] New: for mime extensions does not work with security constraints.
Date Tue, 04 Mar 2008 14:18:47 GMT

           Summary: 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

With security constraints set up, I have noticed that the javascript () 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

Code example :

function ouvrir (pdf) { (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 () is used to open a simple HTML (or a JSP) page.
-       If the document opens in the current page <a href=”xxx”>
-       If () is replaced by <a href=”xxx”

One thing is sure : if the security constraints are removed (I am using
JDNDIRealm ldap for authentication), works well in all the cases.

Many thanks for your feedback !

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message