portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16942] New: - Incorrect implementation of the equals() method in the UserNamePrincipal class
Date Mon, 10 Feb 2003 19:54:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16942>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16942

Incorrect implementation of the equals() method in the UserNamePrincipal class

           Summary: Incorrect implementation of the equals() method in the
                    UserNamePrincipal class
           Product: Jetspeed
           Version: 1.4b3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Security
        AssignedTo: jetspeed-dev@jakarta.apache.org
        ReportedBy: a_mikhin@yahoo.com


There is a "copy-n-paste" error in the equals() method of the 
org.apache.jetspeed.om.security.UserNamePrincipal class:

     public boolean equals(Object another)
    {
        if (!(another instanceof UserIdPrincipal))
            return false;
        UserIdPrincipal principal = (UserIdPrincipal)another;
        return this.getName().equals(principal.getName());
    }
 
UserIdPrincipal should be replaced with UserNamePrincipal.

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message