coheigea opened a new pull request, #3753: URL: https://github.com/apache/cxf/pull/3753
JMSMessageConverter.fromMessage() rejected inbound ObjectMessage unless allowObjectMessages was enabled, but called StreamMessage.readObject() unconditionally. Some JMS providers decode StreamMessage values with Java deserialization, so a producer able to write to the destination could trigger deserialization before the CXF interceptor chain runs, even with allowObjectMessages=false. When allowObjectMessages is false, JMSMessageUtils no longer reads the body of an inbound StreamMessage. It is passed on with an empty body and JMSMessageType "stream", so the SOAP/JMS binding replies with the unsupportedJMSMessageFormat fault required for non-Text/Bytes messages. JMSMessageConverter also rejects StreamMessage unless the flag is set. The SOAP/JMS testsuite cases test1002/test1102 previously received a fault only because the stream's String value failed SOAP parsing. They now check for the unsupportedJMSMessageFormat fault. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
