Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-21280

Review capability reference attributes still supporting expression and disallow them

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 38.0.0.Final, 38.0.1.Final
    • EJB, Web (Undertow)
    • None
    • ---
    • ---

      This task at hand is to audit all existing management attribute definitions that reference a capability (setCapabilityReference()) and still allow expressions (setAllowExpression(true)) with the intention to disable expression support for them upon review.

      While expressions in capability references do technically work in some limited cases (like resolution via system properties in standalone mode), they are fundamentally unreliable and problematic. They prevent correct resolution in domain mode and are not compatible with tooling like Galleon. We have historically warned users about this practice (e.g., WARN WFLYCTL0447 since 2017).

      Goal:
      1. Identify all remaining attributes that are capability references but allow expressions.
      2. Update their attribute definitions to explicitly disallow expressions (setAllowExpression(false)).
      3. Update the model versions for any affected subsystems/attribute, but no transformers needed for this direction (allowed -> disallowed).

      The original discussion is https://github.com/wildfly/wildfly/pull/19434#issuecomment-3644636867

      Model Reference: https://docs.wildfly.org/38/feature-pack/doc/reference/

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: