[jboss-jira] [JBoss JIRA] (ELY-988) Methods 'replacing' and 'replacingSslContext' in AuthenticationContext work incorrectly

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


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

Ondrej Lukas commented on ELY-988:
----------------------------------

As part of fix please remove related ignores in [1]. It can be done as part of PR which will fix this issue.

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

> Methods 'replacing' and 'replacingSslContext' in AuthenticationContext work incorrectly
> ---------------------------------------------------------------------------------------
>
>                 Key: ELY-988
>                 URL: https://issues.jboss.org/browse/ELY-988
>             Project: WildFly Elytron
>          Issue Type: Bug
>    Affects Versions: 1.1.0.Beta28
>            Reporter: Ondrej Lukas
>            Assignee: Darran Lofthouse
>            Priority: Critical
>
> According to their javadoc, these methods should replace the rule and configuration (or SSL context) at the given index with the given rule and configuration.
> In case when AuthenticationContext is defined with RuleNode - RuleA, RuleB, RuleC and RuleNode {{replacing}} method is called for index1 and RuleD, then:
> * correct behavior should be - new AuthenticationContext with rule ordered - RuleA, RuleD, RuleC is created
> * current behavior is - new AuthenticationContext with rule ordered - RuleD, RuleD, RuleB RuleC is created
> Behavior of these methods is correct only in case when they are called with index 0.



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


More information about the jboss-jira mailing list