Details
-
Bug
-
Resolution: Won't Do
-
Major
-
JBossAS-4.0.0 Final, JBossAS-3.2.6 Final
-
None
Description
This relates to this forum post:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=57042
The problem is in the SRPPrincipal. The equals/hashCode implementation
only accounts for the name, it does not include the session id.
Need to add these methods, something like:
public boolean equals(Object obj)
{ SRPPrincipal other = (SRPPrincipal) obj; return this.getName().equals(other.getName()) && this.sessionID == other.sessionID; }public int hashCode()
{ return this.getName().hashCode() + this.sessionID; }Verified by adrian@jboss.com on site.