[
https://issues.redhat.com/browse/WFCORE-5151?page=com.atlassian.jira.plug...
]
Ricardo Martin Camarero commented on WFCORE-5151:
-------------------------------------------------
This issue is triggered by ELY-1637, and I think the only issue is that we need to also
change the default value to use toString() instead of name(). Values are valid in upper
and lower case anyway, because of how EnumValidator works, but they are re-set to the
toString() value. That's why the value is transformed into the lower case value.
dir-contexts referral-mode attribute upper/lower case discrepancy
-----------------------------------------------------------------
Key: WFCORE-5151
URL:
https://issues.redhat.com/browse/WFCORE-5151
Project: WildFly Core
Issue Type: Bug
Components: Security
Affects Versions: 13.0.0.Beta6
Reporter: Jan Stourac
Assignee: Ricardo Martin Camarero
Priority: Minor
Attachments: reproducer.sh
There seems to be a discrepancy of the '/elytron/dir-context[referral-mode]'
attribute represented value.
When there is no value set (default is applied), then particular value is printed in
upper-case - {{IGNORE}}. Although, when we set custom value, then when we try to read it,
it is printed in lower-case now, e.g. {{ignore}} (lower-case is also saved in raw xml
configuration).
This behavior started with {{WildFly 15.0.0.Final}} and is still present in {{WildFly
20.0.0.Final}}. Not sure whether this change was intentional. I was able to find only this
issue which may be kind of related WFCORE-3971.
In {{WildFly 14.0.0.Final}} there was always upper-case value printed.
What is the issue here:
# If this change was NOT intentional -> consider whether we would like to go to
original behavior (upper-case returned always, including raw xml)
# If this change was intentional -> we should probably update so that even default
value is lower-case as otherwise this behavior can be confusing for the customer -
sometimes there is printed value in upper-case only, otherwise lower-case only. Also, this
may be complication for customer automation scripts too.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)