[jboss-jira] [JBoss JIRA] (AS7-6713) CLI: "pattern" and "replacement" should be required when creating logging filter
Chao Wang (JIRA)
jira-events at lists.jboss.org
Tue Mar 12 04:56:42 EDT 2013
Chao Wang created AS7-6713:
------------------------------
Summary: CLI: "pattern" and "replacement" should be required when creating logging filter
Key: AS7-6713
URL: https://issues.jboss.org/browse/AS7-6713
Project: Application Server 7
Issue Type: Bug
Components: Logging
Affects Versions: EAP 6.1.0.Alpha (7.2.0.Final)
Reporter: Chao Wang
Assignee: Chao Wang
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 at 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
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list