tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28170] - PDF content through JSP fails in Tomocat 4.1.30, Windows IE and Acrobat Reader 6.0.1
Date Fri, 02 Apr 2004 23:27:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28170>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28170

PDF content through JSP fails in Tomocat 4.1.30, Windows IE and Acrobat Reader 6.0.1





------- Additional Comments From dfisher@jmlafferty.com  2004-04-02 23:27 -------
Thanks, I did the telnet trick to see everything:

GET /badpdf.jsp HTTP/1.0

Returns:
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=FACB1957A5D101E32866F2466D16D929; Path=/
Content-disposition: inline; filename=sample.pdf
Content-Type: application/pdf;charset=ISO-8859-1
Content-Length: 32111
Date: Fri, 02 Apr 2004 23:08:46 GMT
Server: Apache-Coyote/1.1
Connection: close

While 
GET /sample.pdf HTTP/1.0

Returns:
HTTP/1.1 200 OK
ETag: W/"32111-1080931122000"
Last-Modified: Fri, 02 Apr 2004 18:38:42 GMT
Content-Type: application/pdf
Content-Length: 32111
Date: Fri, 02 Apr 2004 23:11:06 GMT
Server: Apache-Coyote/1.1
Connection: close

So it looks like servlet time.

About PDFs as Text - As someone who beta tested Acrobat 1.0 and has followed it ever since

although not as closely since 4.0. Done all kinds of things like Java applets launched from
a 3.0 
plugin, etc. - Since PDF-1.2 (or so) and linearized/zipped content streams PDFs are no longer
7-
bit ASCII. So, I can see where a character set choice might confuse any of the applications

upstream of the web server!

Also, Jess's point about worrying about linefeeds is something I'm always checking - particularly

the one(s) which easily can get tacked on after the last %> - PDFs (unless linearized)
need the end 
of the file to find everything - all the objects are found from the end.

Here we are the little guys and upstream we have Sun, MSFT and Adobe doing what they will.

Peace.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message