Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3852

Incomplete attribute name in error message of ObjectFieldsRejectAttributeChecker

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0.0.Beta1
    • Management

      When defined ObjectFieldsRejectAttributeChecker (or ListRejectAttributeChecker or their combination) in transformers, the error message is missleading - points to the complex attribute instead of individual subattributes:

      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]
      

      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.

              Unassigned Unassigned
              jkalina@redhat.com Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: