[jboss-jira] [JBoss JIRA] (WFCORE-3852) Incomplete attribute name in error message of ObjectFieldsRejectAttributeChecker

Brian Stansberry (JIRA) issues at jboss.org
Tue May 15 15:09:00 EDT 2018


     [ https://issues.jboss.org/browse/WFCORE-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFCORE-3852:
-------------------------------------
    Issue Type: Enhancement  (was: Bug)
      Priority: Minor  (was: Major)


This is an enhancement request, not a bug. It's not a bug because this message is quite correct:

{code}
WFLYCTL0302: The following attributes are not understood in the target model version and this resource will need to be ignored on the target host: [principal-query]
{code}

The message doesn't say the attribute can't be defined, it says it's not understood. Which is true; the value isn't understood. Being more precise about exactly what's not understood is an enhancement.

TBH it's probably luck that the wording covers this case correctly, but sometimes we get lucky! :)

> Incomplete attribute name in error message of ObjectFieldsRejectAttributeChecker
> --------------------------------------------------------------------------------
>
>                 Key: WFCORE-3852
>                 URL: https://issues.jboss.org/browse/WFCORE-3852
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Management
>    Affects Versions: 5.0.0.Beta1
>            Reporter: Jan Kalina
>            Priority: Minor
>              Labels: domain-mode, transformers
>
> When defined ObjectFieldsRejectAttributeChecker (or ListRejectAttributeChecker or their combination) in transformers, the error message is missleading - points to the complex attribute instead of individual subattributes:
> {code}
> WFLYCTL0297: Transforming operation {
>     \"address\" => [
>         (\"profile\" => \"full\"),
>         (\"subsystem\" => \"elytron\"),
>         (\"jdbc-realm\" => \"xxxx\")
>     ],
>     \"operation\" => \"add\",
>     \"principal-query\" => [{
>         \"data-source\" => \"ExampleDS\",
>         \"sql\" => \"SEL\",
>         \"scram-mapper\" => {
>             \"iteration-count-index\" => \"1\",
>             \"password-index\" => \"2\",
>             \"salt-index\" => \"5\",
>             \"hash-encoding\" => \"base64\" // this attribute is not backward compatible
>         }
>     }],
>     \"operation-headers\" => {
>         \"caller-type\" => \"user\",
>         \"access-mechanism\" => \"NATIVE\",
>         \"domain-uuid\" => \"658c12cc-9501-47d0-bf24-aa11079e444a\",
>         \"execute-for-coordinator\" => true,
>         \"domain-controller-lock-id\" => -1163262107
>     }
> } at resource [
>     (\"profile\" => \"full\"),
>     (\"subsystem\" => \"elytron\"),
>     (\"jdbc-realm\" => \"xxxx\")
> ] to subsystem 'elytron' model version '2.0.0' -- attributes [principal-query] WFLYCTL0302: The following attributes are not understood in the target model version and this resource will need to be ignored on the target host: [principal-query]
> {code}
> The error message should contain something like {{[principal-query[0].scram-mapper.hash-encoding]}} instead of {{[principal-query]}}.
> The error message is misleading, as the attribute {{[principal-query]}} HAS TO be defined - only the {{hash-encoding}} must not.



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


More information about the jboss-jira mailing list