accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-3644) [FindBugs] DelegationToken.equals() is not symmetric with PasswordToken.equals()
Date Thu, 05 Mar 2015 05:35:38 GMT


Christopher Tubbs commented on ACCUMULO-3644:

I think that'll do it. If you want, I can try this and report back. Or you can fork [my working
branch|] for the parent ticket and
see if this change helps {{mvn clean verify -DskipTests -DskipITs}} pass (there might be other
unfixed findbugs issues), or you can just run FindBugs at rank 8 manually for this class and
commit the change yourself. Up-to-you. No rush.

> [FindBugs] DelegationToken.equals() is not symmetric with PasswordToken.equals()
> --------------------------------------------------------------------------------
>                 Key: ACCUMULO-3644
>                 URL:
>             Project: Accumulo
>          Issue Type: Sub-task
>          Components: client
>            Reporter: Christopher Tubbs
>            Assignee: Josh Elser
>              Labels: findbugs
>             Fix For: 1.7.0
> FindBugs at rank 8 warns about DelegationToken overriding PasswordToken, but doing so
in a way that makes {{a.equals(b)}} possibly not the same result as {{b.equals(a)}} when one
of them is a DelegationToken and one of them isn't.
> I see two fixes:
> # ensure that the entirety of what describes DelegationToken are in the bits checked
by PasswordToken and don't override it
> # change PasswordToken so that it doesn't consider subclasses to be equal... they must
also be exactly PasswordToken

This message was sent by Atlassian JIRA

View raw message