Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-222

[PATCH] Incorrect implementation of the equals() method in the UserNamePrincipal class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.4b3
    • None
    • Security
    • None
    • Operating System: All
      Platform: All
    • 16942

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            a_mikhin@yahoo.com Andrei Mikhin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: