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

AttributeDefinition should reject configs with a default value that are also set as required

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Pull Request Sent (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Management
    • Labels:
      None

      Description

      If an AttributeDefinition has a default value configured, then the 'required' setting should be false. The default removes the requirement that the user configure a value.

      AttributeDefinition should reject the combination of a default value and required=true in its constructor.

      I found 13 attributes not following this in subsystem=eltyron (see WFLY-8004) and there are probably more in other subsystems. WFCORE-2249 has been somewhat hiding this for fields in complex attributes because the 2249 bug meant things were not getting validated that should have been.

        Attachments

          Activity

            People

            Assignee:
            michpetrov Michal Petrov
            Reporter:
            brian.stansberry Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: