cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: error with in Cocoon
Date Fri, 02 Jul 2004 00:36:09 GMT
On 01.07.2004 21:59, Leona Slepetis wrote:

>>> I have a problem with Cocoon 2.1 that someone may have seen
>>> before. I am trying to launch a window containing a pdf file,
>>> using the JavaScript method.
>>> When I run this, I get an IE error saying that the site can't be
>>> found. If I use the same pipeline with mime-type="image/gif" and
>>> an image file, the JavaScript code works and opens a new window.
>>> Does anyone know what is happening here? I know that I am getting
>>> to the same place in the sitemap by calling the URL directly or
>>> through the open() function,  It seems that certain mime types
>>> are not being handed off to the new window correctly.
>> Sounds strange but therefore you have logfiles. Set the log level
>> to debug, and compare the requests when opening it via JS and
>> typing it directly in core.log.
> The problem here is that I want to use the sitemap to resolve the
> absolute path, rather than putting it directly in the JS call.

No, the browser does resolve the path for you if you open a window with 
javascript and a relative path. That's why I asked for the difference of 
the two requests as they should be exactly the same. If the relative 
path would not be resolved to an absolute one, you would not even get to 
Cocoon as there would be no host to send the request to.

> So, in my sitemap, I have:
 > <map:match type="regexp" pattern="files/daily_20040718.pdf">
 >   <map:read mime-type="application/pdf"
 >             src="file://Z:/daily_20040718.pdf"/>
> </map:match>
> which causes the IE "Internet Explorer cannot download..." error. If
> I change the mime-type to "image/gif" and use a .gif file, all is
> well. I looked at the logs and see no errors, so I am wondering if it
> has something to do with the reader for PDF, or perhaps the Cocoon
> configuation. This code worked in Cocoon2.0.

Shall it be the old PDF bug with relation to missing content-length 
header in IE??


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message