cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eiko Thomas <>
Subject Re: Problems with fop and content-type response header
Date Fri, 01 Apr 2005 13:04:45 GMT
I found the reason of the problem.

My sitemap used
 <map:match pattern="pics/*.gif">
     <map:read mime-type="image/gif" src="resources/pics/{1}.gif"/>

to deliver pictures and the defaultreader was 
'org.apache.cocoon.reading.ResourceReader'. This procedure worked fine 
with cocoon 2.1.5 and cocoon 2.1.6 but with version 2.1.7 fop can't 
handle images which are sent with this reader (fop creates damaged pdf 
files). The reason seems to be the content-type response header ...

After changing the sitemap to
 <map:match pattern="pics/*.gif">
     <map:read type="image" mime-type="image/gif" 
'org.apache.cocoon.reading.ImageReader' is used and all works fine :-)
In my application the content-type problem has only effects with fop.


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

View raw message