]
Chao Wang moved JBEAP-6880 to WFCORE-1932:
------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-1932 (was: JBEAP-6880)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Domain Management
(was: Server)
(was: User Experience)
Affects Version/s: 3.0.0.Alpha11
(was: 7.1.0.DR7)
Management model does not validate input values in interface section
--------------------------------------------------------------------
Key: WFCORE-1932
URL:
https://issues.jboss.org/browse/WFCORE-1932
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 3.0.0.Alpha11
Reporter: Chao Wang
Assignee: Chao Wang
Priority: Minor
Management model does not validate input values for attributes in {{/interface}}
section.
bq. Attribute indicating that part of the selection criteria for choosing an IP address
for this interface should be whether or it the address fits in the given subnet
definition. Value is a network IP address and the number of bits in the address'
network prefix, written in "slash notation"; e.g. "192.168.0.0/16". An
'undefined' value means this attribute is not relevant to the IP address
selection.
In the description of {{subnet-match}} attribute it is clearly defined the format of
input value. However the following command does not fail.
{code}
/interface=public:write-attribute(name=subnet-match,value="wrong-input")
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
{code}
bq. Attribute indicating that part of the selection criteria for choosing an IP address
for this interface should be whether or not the address matches the given value. Value is
either an IP address in IPv6 or IPv4 dotted decimal notation, or a hostname that can be
resolved to an IP address. An 'undefined' value means this attribute is not
relevant to the IP address selection.
There are also attributes which accept inet addresses - namely inet-address,
loopback-address. Validation for these attributes is not performed either.
{code}
/interface=public:write-attribute(name=inet-address,value="wrong-input")
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
{code}