Rampart
  1. Rampart
  2. RAMPART-128

Rampart breaks xml document in soap message when using policies

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: rampart-core
    • Labels:
      None
    • Environment:
      windows xp sp2, tomcat 6 (on localhost), axis2 1.3, rampart 1.3

      Description

      I'm using axis2 with rampart policy (signing and encrypting the soap message).
      I noticed that if I have a web service that has a response xml that contains elements that are not name space prefixed, like in this example where elements "con" and "param" doesn't have a namespace declaration.

      <?xml version="1.0" encoding="UTF-8"?>
      <c:config xmlns:c="http://www.foo.com/foo/configuration">
      <c:configurations>
      <con name="theName" description="theDesc">
      <param name="pName1" value="val1" />
      <param name="pName2" value="val2" />
      </con>
      </c:configurations>
      </c:config>

      then the xml document will be corrupt on the client side after the security module (rampart) have been invoked.
      The result is that all xml elements that miss the prefix are stripped of their parameters, e.g.

      <?xml version="1.0" encoding="UTF-8"?>
      <c:config xmlns:c="http://www.foo.com/foo/configuration">
      <c:configurations>
      <con>
      <param />
      <param />
      </con>
      </c:configurations>
      </c:config>

      This error doesn't occur when I'm not using policies.

      My guess is that this has something todo with RampartEngine/RampartMessageData uses the Axiom doom when processing the message?

        Issue Links

          Activity

          Fredrik Gustavsson created issue -
          Amila Jayasekara made changes -
          Field Original Value New Value
          Link This issue is blocked by RAMPART-303 [ RAMPART-303 ]
          Andreas Veithen made changes -
          Link This issue is blocked by WSCOMMONS-557 [ WSCOMMONS-557 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Fredrik Gustavsson
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development