[
https://issues.jboss.org/browse/WFCORE-4042?page=com.atlassian.jira.plugi...
]
Claudio Miranda updated WFCORE-4042:
------------------------------------
Description:
The socket-handler resource, contains an attribute "filter-spec" and the
"alternatives" contains a non existent "filter" attribute
{code}
"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"
},
{code}
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.
was:
The socket-handler resource, contains an attribute "filter-spec" and the
"alternatives" contains a non existent "filter" attribute
{code}
"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"
},
{code}
I see there is the same problem for periodic-rotating-file-handler, but I didn't check
other handlers.
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.
"filter-spec" attribute of socket-handler contains non
existent "filter" alternative
------------------------------------------------------------------------------------
Key: WFCORE-4042
URL:
https://issues.jboss.org/browse/WFCORE-4042
Project: WildFly Core
Issue Type: Bug
Components: Logging
Reporter: Claudio Miranda
Assignee: James Perkins
The socket-handler resource, contains an attribute "filter-spec" and the
"alternatives" contains a non existent "filter" attribute
{code}
"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"
},
{code}
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.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)