Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
> >> On 01/06/2011 16:16, Marc Boorshtein wrote: >>> So for some reason the addHeader is not doing anything >> >> I'm guessing you haven't looked at the source for this yet. >> >> org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was >> removed for Tomcat 7. >> >> You want: >> re

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
To quote one of my favorite tv showswell there's your problem! Thanks, I'll give this a try. Marc Sent from my iPad On Jun 1, 2011, at 4:47 PM, Mark Thomas wrote: > On 01/06/2011 16:16, Marc Boorshtein wrote: >> So for some reason the addHeader is not doing anything > > I'm guessing yo

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Mark Thomas
On 01/06/2011 16:16, Marc Boorshtein wrote: > So for some reason the addHeader is not doing anything I'm guessing you haven't looked at the source for this yet. org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was removed for Tomcat 7. You want: request.getCoyoteRequest().get

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
> Hi, Marc- > > Is that a carriage return and/or line feed before the attribute name in the > log file or just the formatting of the e-mail? > > -Terence Bandoian > just email formatting - To unsubscribe, e-mail: users-unsubscr..

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
> > Can you try this: > >    request.addHeader(attrib.getName(), val); > >    logger.info("After added header: " >              + attrib.getName() + "=" >              + request.getHeader(attrib.getName())); > > I wonder if the header value is being ignored because the request is > frozen or someth

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Terence M. Bandoian
On 1:59 PM, Marc Boorshtein wrote: Do you have any filters or other valves that might be wrapping the request and choosing to ignore your extra headers? No, the app is just a servlet that loops over all the headers and cookies and generates a properties response 1) Show us your modified con

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marc, On 5/31/2011 5:27 PM, Marc Boorshtein wrote: >> 2) Show us your Valve code. (It is simple, right?) > > Iterator attribs = lastmile.getAttributes().iterator(); > while (attribs.hasNext()) { >

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
So I tried moving the configuraiton of the valve into the app's META-INF/context.xml with no success. One thing I didn't mention that is interesting is that the I do set the request's setUserPrincipal(..) and that works. Thanks Marc On Tue, May 31, 2011 at 5:27 PM, Marc Boorshtein wrote: >> >>

Re: Request headers created in valve don't make it to application

2011-05-31 Thread Marc Boorshtein
> > Do you have any filters or other valves that might be wrapping the request > and choosing to ignore your extra headers? > No, the app is just a servlet that loops over all the headers and cookies and generates a properties response > 1) Show us your modified conf/context.xml. WE

RE: Request headers created in valve don't make it to application

2011-05-31 Thread Caldarale, Charles R
> From: Marc Boorshtein [mailto:mboorsht...@gmail.com] > Subject: Request headers created in valve don't make it to application > The valve runs, the headers are added but they don't make it to > the underlying web application. Do you have any filters or other valves that might be wrapping the