#132 < and > not deserialized in faultstring/detail

closed-fixed
Martin Kutter
None
5
2008-06-09
2007-11-16
^m'e
No

Hi there,

Maybe this is related to bug #1533836, though now the problem appears in SOAP::Fault. Angle brackets (<>) are not correctly deserialized when appearing in either faultstring or faultdetail. Returning, f.i.,

die SOAP::Fault
->faultcode(...)
->faultstring(...)
->faultdetail(">>> foo <<<")

results at the client in

[XML snippet]

<detail xsi:type="xsd:string">&amp;gt;&amp;gt;&amp;gt;
foo &amp;lt;&amp;lt;&amp;lt;</detail>

[print output]

&gt;&gt;&gt; foo &lt;&lt;&lt;

The same happen when the string is passed to faultstring().

Cheers,

^s

Discussion

  • Martin Kutter
    Martin Kutter
    2008-01-05

    Logged In: YES
    user_id=884175
    Originator: NO

    Hi,

    do you have XML::Parser installed?

    Regards,

    Martin

     
  • Martin Kutter
    Martin Kutter
    2008-01-05

    • assigned_to: nobody --> kutterma
     
  • ^m'e
    ^m'e
    2008-01-16

    Logged In: YES
    user_id=1821823
    Originator: YES

    Hi,

    No, XML::Parser is not installed.

    Cheers,

    ^s

     
  • ^m'e
    ^m'e
    2008-01-16

    Logged In: YES
    user_id=1821823
    Originator: YES

    Sorry, I was looking for the wrong package. XML::Parser is indeed installed, version 2.34-5.

    Cheers,

    ^s

     
  • Martin Kutter
    Martin Kutter
    2008-06-09

    Logged In: YES
    user_id=884175
    Originator: NO

    OK. Looking more closely at the issue, it looks like the result is deserialized (transformed from XML) correctly, but serialized badly: A single > should become &gt; , not &amp;gt; (which is XML-escaped twice).

    Fixed in SVN, will be in next release.

    Thanks,

    Martin

     
  • Martin Kutter
    Martin Kutter
    2008-06-09

    • status: open --> closed-fixed