Re: Rewriting entire request /body in Servlet Filter not working as expected

2015-10-05 Thread Mark Thomas
On 04/10/2015 19:03, Michael Greco wrote: > First time post here. > > Using : > Tomcat 8.0.26 > JDK1.8.0 update 51 > Apache MyFaces 2.2.8. > Maven build of webapp war file > Chrome 45.0.2454.101 m 64 bit > Windows 7 64 bit > > Trying to rewrite the entire request body in a filter using a http

Re: Rewriting entire request /body in Servlet Filter not working as expected

2015-10-05 Thread Michael Greco
On Mon, Oct 5, 2015 at 3:30 AM, Mark Thomas wrote: > On 04/10/2015 19:03, Michael Greco wrote: > > First time post here. > > > > Using : > > Tomcat 8.0.26 > > JDK1.8.0 update 51 > > Apache MyFaces 2.2.8. > > Maven build of webapp war file > > Chrome 45.0.2454.101 m 64 bit > >

Re: Rewriting entire request /body in Servlet Filter not working as expected

2015-10-04 Thread Michael Greco
On Sun, Oct 4, 2015 at 7:25 PM, Michael Greco wrote: > On Sun, Oct 4, 2015 at 2:03 PM, Michael Greco > wrote: > >> First time post here. >> >> Using : >> Tomcat 8.0.26 >> JDK1.8.0 update 51 >> Apache MyFaces 2.2.8. >> Maven build of webapp

Re: Rewriting entire request /body in Servlet Filter not working as expected

2015-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Michael, On 10/4/15 2:03 PM, Michael Greco wrote: > First time post here. Welcome! > Using : Tomcat 8.0.26 JDK1.8.0 update 51 Apache MyFaces 2.2.8. > Maven build of webapp war file Chrome 45.0.2454.101 m 64 bit > Windows 7 64 bit Thanks. >

Rewriting entire request /body in Servlet Filter not working as expected

2015-10-04 Thread Michael Greco
First time post here. Using : Tomcat 8.0.26 JDK1.8.0 update 51 Apache MyFaces 2.2.8. Maven build of webapp war file Chrome 45.0.2454.101 m 64 bit Windows 7 64 bit Trying to rewrite the entire request body in a filter using a http request wrapper. Not entirely sure if this is the right approach

Re: Rewriting entire request /body in Servlet Filter not working as expected

2015-10-04 Thread Michael Greco
I think I might know what is going on now. A specific HttpServletRequestWrapper superclass method is being invoked first (something other than getInputStream() and getReader()) and my overridden methods getInputStream() and getReader() of my subclass are not being invoked because of this, which

Re: Rewriting entire request /body in Servlet Filter not working as expected

2015-10-04 Thread Michael Greco
On Sun, Oct 4, 2015 at 2:03 PM, Michael Greco wrote: > First time post here. > > Using : > Tomcat 8.0.26 > JDK1.8.0 update 51 > Apache MyFaces 2.2.8. > Maven build of webapp war file > Chrome 45.0.2454.101 m 64 bit > Windows 7 64 bit > > Trying to rewrite the entire