[jboss-jira] [JBoss JIRA] (ELY-986) Method equals for MatchRule throws java.lang.IllegalStateException

Ondrej Lukas (JIRA) issues at jboss.org
Wed Mar 8 06:27:01 EST 2017


    [ https://issues.jboss.org/browse/ELY-986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13374551#comment-13374551 ] 

Ondrej Lukas edited comment on ELY-986 at 3/8/17 6:26 AM:
----------------------------------------------------------

Please uncomment following line [1] when this issue will be fixed (it can be done as part of PR which will fix this issue).

[1] https://github.com/wildfly-security/wildfly-elytron/blob/cb6d2652442236a062310af01f6f14f0aea8c3d3/src/test/java/org/wildfly/security/auth/client/AuthenticationContextTest.java#L342


was (Author: olukas):
Please uncomment following line [1] when this issue will be fixed.

[1] https://github.com/wildfly-security/wildfly-elytron/blob/cb6d2652442236a062310af01f6f14f0aea8c3d3/src/test/java/org/wildfly/security/auth/client/AuthenticationContextTest.java#L342

> 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}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list