You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.springframework.ws.soap.addressing.server.AddressingEndpointInterceptor creates the org.springframework.ws.soap.addressing.core.MessageAddressingProperties of the request using org.springframework.ws.soap.addressing.version.AddressingVersion.getMessageAddressingProperties(SoapMessage), and then checks if the required properties are present using org.springframework.ws.soap.addressing.version.AddressingVersion.hasRequiredProperties(MessageAddressingProperties)
getMessageAddressingProperties defaults replyTo and faultTo to anonymous (based in org.springframework.ws.soap.addressing.version.Addressing10.getDefaultReplyTo(EndpointReference)) thus when org.springframework.ws.soap.addressing.version.Addressing10.hasRequiredProperties(MessageAddressingProperties) is called the replyTo and faultTo are never null, but the code only checks if they are not null in order to require messageId.
The code should probably also check if they are anonymous (since anonymous URIs will results in a synchronous response, and not an out of band response) or none address (since reply will be discarded).
The text was updated successfully, but these errors were encountered:
Couple more considerations.
In the AddressingInterceptor10Test class there is testNoTo() method, which is missing the @Test annotation.
Also since this test is with a MessageID, the additional tests that require a response should assert that the reply does not have a RelatesTo
e.g.
org.springframework.ws.soap.addressing.server.AddressingEndpointInterceptor
creates theorg.springframework.ws.soap.addressing.core.MessageAddressingProperties
of the request usingorg.springframework.ws.soap.addressing.version.AddressingVersion.getMessageAddressingProperties(SoapMessage)
, and then checks if the required properties are present usingorg.springframework.ws.soap.addressing.version.AddressingVersion.hasRequiredProperties(MessageAddressingProperties)
getMessageAddressingProperties defaults replyTo and faultTo to anonymous (based in
org.springframework.ws.soap.addressing.version.Addressing10.getDefaultReplyTo(EndpointReference)
) thus whenorg.springframework.ws.soap.addressing.version.Addressing10.hasRequiredProperties(MessageAddressingProperties)
is called the replyTo and faultTo are never null, but the code only checks if they are not null in order to require messageId.The code should probably also check if they are anonymous (since anonymous URIs will results in a synchronous response, and not an out of band response) or none address (since reply will be discarded).
The text was updated successfully, but these errors were encountered: