Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4920

TransformationInInterceptor fails when XML contains same namespace with different prefixes

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      TransformationInInterceptor fails when XML contains same namespace with different prefixes.

      So for example this will fail:

      <wireTransfer xmlns:q1="http://bar.com/foo" xsi:type="q1:SwiftWireTransfer">
      ...
      </wireTransfer>
      <wireTransfer xmlns:q2="http://bar.com/foo" xsi:type="q2:SwiftWireTransfer">
      ...
      </wireTransfer>
      

      as for "q2:SwiftWireTransfer" the prefix q2 would be never found due to internal cache strategy.

      So the above bug blocks usage of such kind of XML message.
      Of cource using different prefixes for same namespaces is not a good practice, but when there is a need to "talk" with external vendor software (as in my situation) there might be no chance to fix it on second side.

      I have this already fixed.
      Will apply patch in few moments.

      Greetings,
      Piotr Klimczak

      Attachments

        1. CXF4920-v2.5.X.diff
          7 kB
          Piotr Klimczak
        2. CXF4920-v2.6.X.diff
          7 kB
          Piotr Klimczak
        3. CXF4920.diff
          5 kB
          Piotr Klimczak

        Activity

          People

            ay Akitoshi Yoshida
            nannou9 Piotr Klimczak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: