[jboss-jira] [JBoss JIRA] (WFLY-187) CLI: "pattern" and "replacement" should be required when creating logging filter

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Tue Jul 23 14:50:30 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792269#comment-12792269 ] 

RH Bugzilla Integration commented on WFLY-187:
----------------------------------------------

mark yarborough <myarboro at redhat.com> changed the Status of [bug 915835|https://bugzilla.redhat.com/show_bug.cgi?id=915835] from VERIFIED to CLOSED
                
> CLI: "pattern" and "replacement" should be required when creating logging filter
> --------------------------------------------------------------------------------
>
>                 Key: WFLY-187
>                 URL: https://issues.jboss.org/browse/WFLY-187
>             Project: WildFly
>          Issue Type: Bug
>          Components: Logging
>            Reporter: Chao Wang
>            Assignee: James Perkins
>             Fix For: 8.0.0.Alpha1
>
>         Attachments: AS7-6713.patch
>
>
> 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