tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Lamb" <p...@redfork.com>
Subject getUserPrincipal bug
Date Tue, 30 May 2000 20:05:30 GMT
 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;
     }



Mime
View raw message