cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7156] New: - [PATCH] PDFs shouldSetContentLength with ResourceReader
Date Fri, 15 Mar 2002 18:03:48 GMT
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


Mime
View raw message