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

Ingo Weiss (JIRA) issues at jboss.org
Wed Apr 12 04:23:00 EDT 2017


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

Ingo Weiss commented on ELY-986:
--------------------------------

Just tested on latest master and it seems to not have this issue. This is what I'm seeing now:

{noformat}
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec <<< FAILURE! - in org.wildfly.security.auth.client.AuthenticationContextTest
withoutRuleSsl(org.wildfly.security.auth.client.AuthenticationContextTest)  Time elapsed: 0.115 sec  <<< FAILURE!
java.lang.AssertionError: expected: org.wildfly.security.auth.client.MatchPortRule<port=1234> but was: org.wildfly.security.auth.client.MatchPortRule<port=1234>
{noformat}


> 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: Ingo Weiss
>            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