Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7909

WS-Addressing allowDuplicates=false rejects legitimate retransmissions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WS-* Components
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      According to the WS-Addressing specification (https://www.w3.org/Submission/ws-addressing):

      "No two messages with a distinct application intent may share a [message id] property. A message MAY be retransmitted for any purpose including communications failure and MAY use the same [message id] property."

      Our application currently has the setting:

       

      <bean id="mapAggregator" class="org.apache.cxf.ws.addressing.MAPAggregator">
        <property name="allowDuplicates" value="false"/>
      </bean>
      

      We encountered a situation, where our application was misconfigured (could not read trust store used for SAML validation) for a short period of time and rejected incoming messages.

      Once the misconfiguration was fixed, retransmissions of these same messages were rejected due to them being detected as duplicates. This was not a desired outcome.

      Now we are thinking about how to avoid rejecting legitimate retransmissions, while retaining the benefit of using the WS-Addressing messageid cache.

      Could the caching implementation in CXF be enhanced to offer further configurability? Could the behavour be dependent on whether the original message was processed successfully (SOAP response) or whether the message was rejected (SOAP fault)?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tomasv Tomas Vanhala
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: