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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to