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

William McCusker updated ODE-380:
---------------------------------

    Attachment: setHeader_1x.diff

setHeader patch for 1.x branch. 

Also fixed a small problem with 
org.apache.ode.bpel.engine.MessageImpl.getHeaderParts() found while writing 
test class. The header parts were being placed into a map using their local 
name as the key however since they were created using a DOM Level 1 method 
getLocalName will always return null. changed it to use getNodeName instead.

> Message#setHeaderPart should overwrite any previous value
> ---------------------------------------------------------
>
>                 Key: ODE-380
>                 URL: https://issues.apache.org/jira/browse/ODE-380
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2
>            Reporter: Alexis Midon
>             Fix For: 2.0
>
>         Attachments: setHeader_1x.diff
>
>
> org.apache.ode.bpel.iapi.Message#setHeaderPart should overwrite any previous 
> value if called twice.
> As of today, a new element with the same name is appended to the document. So 
> you can get something like:
> <?xml version="1.0" encoding="UTF-8"?>
> <header>
>    <header_ABC>foo</header_ABC>
>    <header_ABC>bar</header_ABC>
> </header>
> Then when Message.getHeaderPart is invoked, the first element is returned.
> The fix must make sure that Message#setHeaderPart overwrite any existing 
> value of the given header.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to