activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder (JIRA)" <>
Subject [jira] Updated: (AMQ-904) SecurityContext doesn't work with WebLogic Principals
Date Fri, 20 Nov 2009 22:13:52 GMT


Bruce Snyder updated AMQ-904:

    Fix Version/s:     (was: AGING_TO_DIE)

> SecurityContext doesn't work with WebLogic Principals
> -----------------------------------------------------
>                 Key: AMQ-904
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.0.1
>            Reporter: Aaron Mulder
>             Fix For: NEED_REVIEWED
> SecurityContext.isInOneOf attempts to determine whether a user has one of a set of possible
principals.  It does this by using HashSet.retainAll, which relies on equals and hashcode.
> This doesn't work for WebLogic principals (the variable "set" in that method always ends
up empty).  I'm not totally clear on why, but I notice that the principals generated by a
WebLogic authentication have signature data, while the principals created as the "eligible
principals" using the same WebLogic classes ( have
null signature data.  I speculate that WebLogic signs the principals it creates and that equals
and/or hashCode consider the signature.
> It would be ideal if SecurityContext.isInOneOf manually compared the principal class
and principal name instead of relying on the equals and/or hashCode methods of the underlying
principal class.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message