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

Jan Kalina (JIRA) issues at jboss.org
Tue May 15 08:51:00 EDT 2018


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

Jan Kalina reassigned WFCORE-3852:
----------------------------------

    Assignee:     (was: Jan Kalina)


> Incomplete attribute name in error message of ObjectFieldsRejectAttributeChecker
> --------------------------------------------------------------------------------
>
>                 Key: WFCORE-3852
>                 URL: https://issues.jboss.org/browse/WFCORE-3852
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Management
>    Affects Versions: 5.0.0.Beta1
>            Reporter: Jan Kalina
>              Labels: 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