[
https://issues.jboss.org/browse/WFCORE-1166?page=com.atlassian.jira.plugi...
]
Kabir Khan updated WFCORE-1166:
-------------------------------
Description:
If /some=where has a child redirection for the child=* child resource to new-child=*,
then
{code}
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
{code}
gets correctly transformed to
{code}
{
"operation" => "add",
"address" => [
("some" => "where"),
("new-child" => "*")
]
}
{code}
But if wrapped in a composite, e.g.:
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
]
}
{code}
the redirection does not happen in the transformed composite, so we have the original
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
]
}
{code}
rather than the expected
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("new-child" => "*")
]
}
]
}
{code}
was:
If /some=where has a child redirection for the child=* child resource to new-child=*,
then
{code}
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
{code}
gets correctly transformed to
{code}
{
"operation" => "add",
"address" => [
("some" => "where"),
("new-child" => "*")
]
}
{code}
But if wrapped in a transformer, e.g.:
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
]
}
{code}
the redirection does not happen in the transformed composite, so we have the original
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
]
}
{code}
rather than the expected
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("new-child" => "*")
]
}
]
}
{code}
CompositeTransformer does not transform addresses
-------------------------------------------------
Key: WFCORE-1166
URL:
https://issues.jboss.org/browse/WFCORE-1166
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 2.0.3.Final
Reporter: Kabir Khan
Assignee: Kabir Khan
If /some=where has a child redirection for the child=* child resource to new-child=*,
then
{code}
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
{code}
gets correctly transformed to
{code}
{
"operation" => "add",
"address" => [
("some" => "where"),
("new-child" => "*")
]
}
{code}
But if wrapped in a composite, e.g.:
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
]
}
{code}
the redirection does not happen in the transformed composite, so we have the original
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("child" => "*")
]
}
]
}
{code}
rather than the expected
{code}
{
"operation" => "composite",
"address" => [],
"steps" => [
{
"operation" => "add",
"address" => [
("some" => "where"),
("new-child" => "*")
]
}
]
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)