Mantis - Resin
Viewing Issue Advanced Details
3665 minor always 09-02-09 16:20 09-03-09 09:59
ferg  
ferg  
immediate  
closed 3.1.6  
fixed  
none    
none 4.0.2  
0003665: Comet servlet dispatch in 3.1.6
(rep by Fiaz Hossain)

I have this issue with the current Comet servlet that seems to make my code fragile and it ends up with the following excption. The problem is anytime someone adds an HttpServletRequestWrapper in the request chain my Comet servlet breaks and I have to add a URI exclude to the filter-mapping. Adding the exclude avoids the exception but I still miss some useful functionality provided by the filter so ideally I need a different solution. It would have been nice if the HttpConnectionController knew that the request object is really a wrapper and could traverse to a point where it can do the casting safely to an AbstractHttpRequest.
 
Cause0: java.lang.ClassCastException: routing.filter.RemoteAddrFilterBase$RemoteAddrWrapper cannot be cast to com.caucho.server.connection.AbstractHttpRequest
Cause0-StackTrace:
at com.caucho.server.connection.HttpConnectionController.getAbstractHttpRequest(HttpConnectionController.java:67)
at com.caucho.server.connection.HttpConnectionController.<init>(HttpConnectionController.java:54)
at com.caucho.server.dispatch.CometServletFilterChain.doFilter(CometServletFilterChain.java:111)
at system.filter.FooDomainRedirectFilter.doFilter(VisualforceDomainRedirectFilter.java:105)

Notes
(0004212)
ferg   
09-03-09 09:59   
server/1l14