You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/03/15 19:03:48 UTC
DO NOT REPLY [Bug 7156] New: -
[PATCH] PDFs shouldSetContentLength with ResourceReader
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7156>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7156
[PATCH] PDFs shouldSetContentLength with ResourceReader
Summary: [PATCH] PDFs shouldSetContentLength with ResourceReader
Product: Cocoon 2
Version: Current CVS
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: sitemap components
AssignedTo: cocoon-dev@xml.apache.org
ReportedBy: stuart.roebuck@adolos.co.uk
The Adobe PDF browser plugin doesn't like reading files of unknown length.
Cocoon already has a workaround for this when generating PDFs on the fly, but doesn't deal with PDFs which are served from PDF files using the ResourceReader. This results in PDFs failing to display until they have been cached by Cocoon, after which the cache returns a file length by default.
This patch causes ResourceReader to define that source files of mime type "Application/PDF" should set a content length. This is based on the mime type of the source file *not* the mime type specified in the sitemap.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org