tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fulford, William" <William.Fulf...@ngc.com>
Subject RE: Return from getRemoteUser and isUserInRole Inconsistent
Date Mon, 25 Jan 2010 23:46:00 GMT
Chuck,

You caught me.  Rookie mistake.  It's refreshing to know I can still make rookie mistakes
after almost 30 years in software.  What I did was do a WebContextFactory.get() on class initialization
as a private static variable.  I should have been doing the get on each call.

Thanks,
Doug

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Monday, January 25, 2010 3:09 PM
To: Tomcat Users List
Subject: RE: Return from getRemoteUser and isUserInRole Inconsistent

> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Subject: Re: Return from getRemoteUser and isUserInRole Inconsistent
> 
> If it's the functions above that return random stuff,
> I'd look at those.

I'd be looking for incorrect variable scope: storing a request- or session-specific item in
a servlet's instance variable, for example.  You can get wondrous strange results with that
kind of mistake.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

Mime
View raw message