]
Ondrej Lukas updated ELY-986:
-----------------------------
Affects Version/s: 1.1.0.Beta28
Method equals for MatchRule throws java.lang.IllegalStateException
------------------------------------------------------------------
Key: ELY-986
URL:
https://issues.jboss.org/browse/ELY-986
Project: WildFly Elytron
Issue Type: Bug
Affects Versions: 1.1.0.Beta28
Reporter: Ondrej Lukas
Assignee: Darran Lofthouse
Priority: Critical
In case when method {{equals(MatchRule other)}} is called on
{{org.wildfly.security.auth.client.MatchRule}} then it finishes with
java.lang.IllegalStateException with following stack trace, for calling
{{MatchRule.ALL.equals(MatchRule.ALL);}}:
{code}
java.lang.IllegalStateException
at org.wildfly.security.auth.client.MatchRule$1.getMatchUser(MatchRule.java:102)
at org.wildfly.security.auth.client.MatchRule.getMatchUser(MatchRule.java:500)
at org.wildfly.security.auth.client.MatchNoUserRule.halfEqual(MatchNoUserRule.java:46)
at org.wildfly.security.auth.client.MatchRule.equals(MatchRule.java:157)
...
{code}