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

CLI: "pattern" and "replacement" should be required when creating logging filter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Alpha1
    • None
    • Logging
    • None

    Description

      It's able to set filter attribute without "pattern" and "replacement" although they are not nillable.

      calling:
      /subsystem=logging/console-handler=CONSOLE:write-attribute(name=filter, value={replace => {"replace-all" => true}})

      will create useless filter:
      "filter" => {"replace" =>

      { "replace-all" => true, "pattern" => "undefined", "replacement" => "undefined" }}

      "filter-spec" => "substituteAll(\"undefined\",\"undefined\")"

      only "replace-all" is actually required now:
      [standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:update-properties(filter={replace => {"pattern" => "JBAS","replacement" => "SABJ"}})
      {
      "outcome" => "failed",
      "failure-description" => "JBAS014749: Operation handler failed: null",
      "rolled-back" => true
      }

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            chaowan@redhat.com Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: