You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/03/04 15:18:47 UTC

DO NOT REPLY [Bug 44527] New: window.open() for mime extensions does not work with security constraints.

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: tomcat-dev@jakarta.apache.org
        ReportedBy: andre.laurent@vivium.lu


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 44527] window.open() for mime extensions does not work with security constraints.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44527


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-03-06 13:15:03 PST ---
This is a 'feature' of how IE implements caching. You need to use
<Context>
  <Valve className="org.apache.catalina.authenticator.BasicAuthenticator" 
securePagesWithPragma="false" />
</Context>

or equivalent for your authentication mechanism.

Please ask on the users list if you need further assistance with this.


-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org