ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaliy Tkachenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ODE-1078) After node replacement old attributes are preserved
Date Wed, 30 Jan 2019 09:27:00 GMT

     [ https://issues.apache.org/jira/browse/ODE-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vitaliy Tkachenko updated ODE-1078:
-----------------------------------
    Description: 
The ODE-960 fix is invalid and should be rolled back.

To select the whole node the following formula should be used (accordingly to the example
given in the ODE-960):

$extPLRequest.parameters/ns:userIdin

In this case the whole node and all its subnodes (including attributes) should be replaced
with a new value.

To select the userIdin's (inner) text node only the corresponding XPath should be used:

$extPLRequest.parameters/ns:userIdin/text() which selects text subnode of the corresponding
node. ODE works correctly in this case and removes node inner text only. See also my notes
in the ODE-960.

Note this works correctly in JBPM, the whole doe with its content including attributes is
replaced in case of its selection and only inner text if its text node is selected using text()
function.

  was:
The ODE-960 fix is invalid and should be rolled back.

To select the whole node the following formula should be used (accordingly to the example
given in the ODE-960):

$extPLRequest.parameters/ns:userIdin

In this case the whole node and all its subnodes (including attributes) should be replaced
with a new value.

To select the userIdin's (inner) text node only the corresponding XPath should be used:

$extPLRequest.parameters/ns:userIdin/text() which selects text subnode of the corresponding
node. ODE works correctly in this case and removes node inner text only. See also my notes
in the ODE-960.


> After node replacement old attributes are preserved
> ---------------------------------------------------
>
>                 Key: ODE-1078
>                 URL: https://issues.apache.org/jira/browse/ODE-1078
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.8
>            Reporter: Vitaliy Tkachenko
>            Priority: Major
>
> The ODE-960 fix is invalid and should be rolled back.
> To select the whole node the following formula should be used (accordingly to the example
given in the ODE-960):
> $extPLRequest.parameters/ns:userIdin
> In this case the whole node and all its subnodes (including attributes) should be replaced
with a new value.
> To select the userIdin's (inner) text node only the corresponding XPath should be used:
> $extPLRequest.parameters/ns:userIdin/text() which selects text subnode of the corresponding
node. ODE works correctly in this case and removes node inner text only. See also my notes
in the ODE-960.
> Note this works correctly in JBPM, the whole doe with its content including attributes
is replaced in case of its selection and only inner text if its text node is selected using
text() function.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message