Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1093

Request and response includes the same wsa:MessageID if the PRESERVE_WS_ADDRESSING property is set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.5.0
    • Fix Version/s: 4.5.0
    • Component/s: Mediators
    • Labels:
      None
    • Environment:

      jdk1.6.0_29

    • Severity:
      Critical
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      Steps to reproduce:
      ================
      1. Have the following synapse configuration

      <sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
      <in>
      <switch xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" xmlns:m0="http://services.samples" source="//m0:getQuote/m0:request/m0:symbol">
      <case regex="IBM">
      <property name="symbol" value="Great stock - IBM" />
      </case>
      <case regex="MSFT">
      <property name="symbol" value="Are you sure? - MSFT" />
      </case>
      <default>
      <property name="symbol" expression="fn11:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)" scope="default" />
      </default>
      </switch>
      <property name="PRESERVE_WS_ADDRESSING" value="true" scope="default" />
      <send>
      <endpoint>
      <address uri="http://localhost:9001/services/SimpleStockQuoteService">
      <enableAddressing />
      </address>
      </endpoint>
      </send>
      </in>
      <out>
      <log level="full">
      <property name="RESPONSE_PROP" value="*****response message*****" />
      </log>
      <send />
      </out>
      </sequence>

      2. Send a request to ESB
      3. Check the addressing headers request and response messages

      Request message header
      =====================
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:MessageID>urn:uuid:38bfd5fb-b26b-4aec-996a-0897a2baf817</wsa:MessageID>
      <wsa:Action>urn:getQuote</wsa:Action>
      </soapenv:Header>

      Response header
      ===============

      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:Action>urn:getQuoteResponse</wsa:Action>
      <wsa:RelatesTo>urn:uuid:38bfd5fb-b26b-4aec-996a-0897a2baf817</wsa:RelatesTo>
      <wsa:MessageID>urn:uuid:38bfd5fb-b26b-4aec-996a-0897a2baf817</wsa:MessageID>
      <wsa:RelatesTo>urn:uuid:38bfd5fb-b26b-4aec-996a-0897a2baf817</wsa:RelatesTo>
      </soapenv:Header>

      As you can see, there are two RelatesTo elements but both of them have the same UUID. It seems totally incorrect. Also, can two different messages (in this case, request and response) have the same wsa:MessageID value?

        Attachments

          Activity

            People

            • Assignee:
              kasun@wso2.com Kasun Indrasiri
              Reporter:
              charitha@wso2.com Charitha Kankanamge
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: