You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Vitaliy Tkachenko (JIRA)" <ji...@apache.org> on 2019/08/02 10:43:00 UTC

[jira] [Updated] (ODE-1078) After node replacement old attributes are preserved

     [ 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 node 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.

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.


> 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 node 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.14#76016)