pombreda / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 1 forks source link

Provider<HttpServletRequest> request injects the original request, not the output of the filter chain #780

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the issue:

When using Provider<HttpServletRequest> injection, the output of the Provider 
is the original request that was passed into GuiceFilter, not the request that 
comes out of the filter chain. The end result of this is that wrapped requests 
provided by filters in the chain are not available to components that are 
running after the filter chain has completed.

Steps to reproduce:
1. Create a class with Provider<HttpServletRequest> as a parameter
2. Filter requests through a filter that wraps the servlet request in some way 
before handing it off during the chain
3. Observe that the provided HttpServletRequest is not the wrapped version

Original issue reported on code.google.com by mmast...@gmail.com on 7 Nov 2013 at 4:53