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

WS-A:MessageID exposed by MessagecontextWhitespace not normalized as prescribed by xsd:anyURI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • JAXB Databinding
    • None
    • Unknown

    Description

      A xsd:anyURI derived type such as the WS-Addressing MessageID has a 'whiteSpace = collapse (fixed)'-facet according to https://www.w3.org/TR/xmlschema11-2/#anyURI.

      The MessageID exposed by org.apache.cxf.ws.addressing.AddressingProperties is not normalized when obtained from the MessageContext under the 'javax.xml.ws.addressing.context.inbound' property.

      I've added 2 unittests that I ran inside the 3.4.0-SNAPSHOT codebase:

      1. systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
        • Existing client/server testcase modified to test only the MessageID-handling
      2. systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/WsaMessageIdTest.java
        • New testcase that shows the same behavior with a marshalling/unmarshaling using the ObjectFactory in CXF

      This might be related:

      Workaround i'm using:

      Attachments

        1. DispatchClientServerTest.java
          10 kB
          Bhun Kho
        2. WsaMessageIdTest.java
          4 kB
          Bhun Kho

        Activity

          People

            Unassigned Unassigned
            bhkho Bhun Kho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: