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

"filter-spec" attribute of socket-handler contains non existent "filter" alternative

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.CR3
    • None
    • Logging
    • None

      The socket-handler resource, contains an attribute "filter-spec" and the "alternatives" contains a non existent "filter" attribute

      "filter-spec" => {
          "type" => STRING,
          "description" => "A filter expression value to define a filter. Example for a filter that does not match a pattern: not(match(\"JBAS.*\"))",
          "expressions-allowed" => true,
          "required" => false,
          "nillable" => true,
          "alternatives" => ["filter"],
          "min-length" => 1L,
          "max-length" => 2147483647L,
          "access-type" => "read-write",
          "storage" => "configuration",
          "restart-required" => "no-services"
      },
      

      I counted the following resources affected by the issue.

      /logging-profile=*/async-handler=*
      /logging-profile=*/console-handler=*
      /logging-profile=*/custom-handler=*
      /logging-profile=*/file-handler=*
      /logging-profile=*/periodic-rotating-file-handler=*
      /logging-profile=*/periodic-size-rotating-file-handler=*
      /logging-profile=*/size-rotating-file-handler=*
      /logging-profile=*/socket-handler=*
      /logging-profile=*/root-logger=ROOT
      /periodic-size-rotating-file-handler=*
      /socket-handler=*
      

      In HAL we use the metadata to validate user input and in this case, we undefine the alternative attribute the user didn't set, "filter", resulting in an error because the attribute doesn't exist. I did a workaround, but would be interesting to fix the alternatives metadata.

              jperkins-rhn James Perkins
              cmiranda@redhat.com Claudio Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: