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

Attributes and namespace declarations are being removed from an element produced from an XQuery expression.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0
    • 1.3.2
    • BPEL Runtime
    • None
    • ServiceMix

    Description

      The following element was constructed by an XQuery expression:

      <sref:service-ref xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
      <wsa:EndpointReference xmlns:pp="http://some-namespace" xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
      <wsa:Metadata>
      <Service EndpointName="MyEndpoint">pp:SomeProxy</Service>
      </wsa:Metadata>
      </wsa:EndpointReference>
      </sref:service-ref>

      However, when the value is set on the partner link, it appears to have lost its namespace declarations and attributes.

      <service-ref xmlns="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
      <EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
      <Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
      <Metadata>
      <Service>pp:SomeProxy</Service>
      </Metadata>
      </EndpointReference>
      </service-ref>

      • Notice that //Service/@EndpointName is now missing
      • Notice that xmlns:pp="http://some-namespace" is now missing

      This appears to be coming from DOMUtils.cloneNode(Document,Node). The code there does not consider the attributes or namespace declarations for the an element being cloned.

      Attachments

        Activity

          People

            karthick Karthick Sankarachary
            mark.ford Mark Ford
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: