You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Paul Lamb <pa...@redfork.com> on 2000/05/30 22:05:30 UTC
getUserPrincipal bug
getUserPrincipal() in RequestImpl.java returns a SimplePrincipal even when
getRemoteUser returns null.
Shouldn't this be changed to:
public Principal getUserPrincipal() {
if( principal == null ) {
if( getRemoteUser() == null )
return null;
else
principal=new SimplePrincipal( getRemoteUser() );
}
return principal;
}