[jboss-jira] [JBoss JIRA] (ELY-1637) Change ReferralMode.toString to return value

Philippe Marschall (JIRA) issues at jboss.org
Mon Aug 13 07:53:00 EDT 2018


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

Philippe Marschall commented on ELY-1637:
-----------------------------------------

Old configurations stay valid because the parser calls `.toUpperCase()` on the value:

https://github.com/wildfly/wildfly-core/blob/master/elytron/src/main/java/org/wildfly/extension/elytron/DirContextDefinition.java#L194

New configurations with the new schema version with the enumeration will fail XML validation but should still get parsed. The serialization will produce valid XML in either case.

> Change ReferralMode.toString to return value
> --------------------------------------------
>
>                 Key: ELY-1637
>                 URL: https://issues.jboss.org/browse/ELY-1637
>             Project: WildFly Elytron
>          Issue Type: Enhancement
>            Reporter: Philippe Marschall
>            Assignee: Darran Lofthouse
>
> The documentation of the referral-mode attribute in WildFly says the allowed values should be "ignore", "follow", "throw". However they are currently serialized as "IGNORE", "FOLLOW", "THROW". This is a WildFly issue and not an Elytron issue.
> However as part of the discussion on how to best fix WFCORE-3971 the easiest solution seems to be to change {{ReferralMode#toString()}}, that way the parser does not have to change.
> Once WildFly upgrades to a version of Elytron with this change a couple of tests will fail as the serialized model will intentionally change.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list