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 39527] New: - add more HTTP Header info (e.g. RANGE) as request attributes
Date Tue, 09 May 2006 07:52:26 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=39527>.
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=39527

           Summary: add more HTTP Header info (e.g. RANGE) as request
                    attributes
           Product: Tomcat 5
           Version: 5.5.14
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


Background: my SSL site needs to proxy a few pages (all with a relative URL
prefix such as /static) coming from a CMS on a different machine.

Solution:
use web.xml's <error-code>404</error-code>
<location>/pageNotFound404.do</location>
and in there, if the requestURI starts with "/static", use commons.httpclient to
retrieve the page (and do some caching irrelevant for this RFE)

Issue:
- This works fine for almost any content, except for pdf or flash animations
- it even works for pdf is the line-mode browser lynx is used
- it appears that acrobat's pdf plugin doesn't entirely download a page, but
grabs parts of the file at a time.
Unfortunately, the HttpServletRequest the application programmer gets access to
doesn't expose the corresponding attributes.

Suggestion:
-----------
Similarly to adding security extra info to the HttpServletRequest such as 
javax.servlet.request.cipher_suite=TLS_DHE_RSA_WITH_AES_128_CBC_SHA
also add such RANGE/chunk values in request attributes to the request before
passing the control on to the error page/action.

After all, tomcat appears to know how to deal with those for the static elements
in its war file as per org.apache.catalina.servlets.DefaultServlet.parseRange.

see also Bug 38214

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message