Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-380

Message#setHeaderPart should overwrite any previous value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3.6, 1.4
    • BPEL Runtime

    Description

      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.

      Attachments

        1. setHeaders_1x.diff
          7 kB
          William McCusker
        2. setHeaders_trunk.diff
          6 kB
          William McCusker

        Activity

          People

            vanto Tammo van Lessen
            alexismidon Alexis Midon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: