[jboss-jira] [JBoss JIRA] (WFCORE-967) list-xxx and map-xxx do not work in a composite
Kabir Khan (JIRA)
issues at jboss.org
Tue Sep 8 15:52:00 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kabir Khan updated WFCORE-967:
------------------------------
Description:
When running e.g. a series of map-add operations in a composite, only the last step takes effect. e.g.:
{code}
Model Before: {
"deployment" => undefined,
"subsystem" => {"test-subsystem" => {
"properties" => {
"one" => "A",
"two" => "B",
"three" => "C"
},
"test" => "Hello"
}}
}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "map-remove",
"address" => [("subsystem" => "test-subsystem")],
"name" => "properties",
"key" => "one"
},
{
"operation" => "map-remove",
"address" => [("subsystem" => "test-subsystem")],
"name" => "properties",
"key" => "two"
},
{
"operation" => "map-remove",
"address" => [("subsystem" => "test-subsystem")],
"name" => "properties",
"key" => "three"
}
]
}
Model After: {
"deployment" => undefined,
"subsystem" => {"test-subsystem" => {
"properties" => {
"one" => "A",
"two" => "B"
},
"test" => "Hello"
}}
}
{code}
The same happens with map-put, map-remove, list-add and list-remove when used in a composite. I have added some more tests to https://github.com/kabir/wildfly-core/blob/map-operation-composite/controller/src/test/java/org/jboss/as/controller/operation/global/CollectionOperationsTestCase.java to demonstrate the problem. These tests should be expanded to cover more of the map operations when used in a composite.
was:
When running e.g. a series of map-add operations in a composite, only the last step takes effect. e.g.:
{code}
Model Before: {
"deployment" => undefined,
"subsystem" => {"test-subsystem" => {
"properties" => {
"one" => "A",
"two" => "B",
"three" => "C"
},
"test" => "Hello"
}}
}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "map-remove",
"address" => [("subsystem" => "test-subsystem")],
"name" => "properties",
"key" => "one"
},
{
"operation" => "map-remove",
"address" => [("subsystem" => "test-subsystem")],
"name" => "properties",
"key" => "two"
},
{
"operation" => "map-remove",
"address" => [("subsystem" => "test-subsystem")],
"name" => "properties",
"key" => "three"
}
]
}
Model After: {
"deployment" => undefined,
"subsystem" => {"test-subsystem" => {
"properties" => {
"one" => "A",
"two" => "B"
},
"test" => "Hello"
}}
}
{code}
The same happens with map-put, map-remove, list-add and list-remove when used in a composite. I have added some more tests to https://github.com/kabir/wildfly-core/blob/map-operation-composite/controller/src/test/java/org/jboss/as/controller/operation/global/CollectionOperationsTestCase.java to demostrate the problem.
> list-xxx and map-xxx do not work in a composite
> -----------------------------------------------
>
> Key: WFCORE-967
> URL: https://issues.jboss.org/browse/WFCORE-967
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 2.0.0.Beta6
> Reporter: Kabir Khan
> Assignee: Tomaz Cerar
> Priority: Critical
> Fix For: 2.0.0.CR1
>
>
> When running e.g. a series of map-add operations in a composite, only the last step takes effect. e.g.:
> {code}
> Model Before: {
> "deployment" => undefined,
> "subsystem" => {"test-subsystem" => {
> "properties" => {
> "one" => "A",
> "two" => "B",
> "three" => "C"
> },
> "test" => "Hello"
> }}
> }
> {
> "operation" => "composite",
> "address" => [],
> "steps" => [
> {
> "operation" => "map-remove",
> "address" => [("subsystem" => "test-subsystem")],
> "name" => "properties",
> "key" => "one"
> },
> {
> "operation" => "map-remove",
> "address" => [("subsystem" => "test-subsystem")],
> "name" => "properties",
> "key" => "two"
> },
> {
> "operation" => "map-remove",
> "address" => [("subsystem" => "test-subsystem")],
> "name" => "properties",
> "key" => "three"
> }
> ]
> }
> Model After: {
> "deployment" => undefined,
> "subsystem" => {"test-subsystem" => {
> "properties" => {
> "one" => "A",
> "two" => "B"
> },
> "test" => "Hello"
> }}
> }
> {code}
> The same happens with map-put, map-remove, list-add and list-remove when used in a composite. I have added some more tests to https://github.com/kabir/wildfly-core/blob/map-operation-composite/controller/src/test/java/org/jboss/as/controller/operation/global/CollectionOperationsTestCase.java to demonstrate the problem. These tests should be expanded to cover more of the map operations when used in a composite.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list