Hi Folks, I'm looking into SYNAPSE-849 (Synapse doesn't handle malformed XML messages properly). Issue has been reported for the old NHTTP transport, but it's valid for the pass through transport as well. Currently Synapse simply logs the error but doesn't send any response to the client, causing the client to timeout.
The reason is that the error thrown by Axiom in case of malformed XML is an unchecked exception (DeferredParsingException). Synapse only looks for and handles AxisFaults and other obvious checked exceptions like IOExceptions. If we make a small change in the ServerWorker to catch all Exceptions instead of just AxisFaults, Synapse will at least send back a proper SOAP fault to the client whenever something like this happens. The above issue however asks for more; they request the ability to mediate this SOAP fault. I suppose this is also possible but will require more changes. Any ideas on the best strategy to resolve this issue? Thanks, Hiranya -- Hiranya Jayathilaka Mayhem Lab/RACE Lab; Dept. of Computer Science, UCSB; http://cs.ucsb.edu E-mail: [email protected]; Mobile: +1 (805) 895-7443 Blog: http://techfeast-hiranya.blogspot.com
