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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to