[ 
https://issues.apache.org/jira/browse/CXF-8285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bhun Kho updated CXF-8285:
--------------------------
    Attachment:     (was: TestDispatchFeature.java)

> WS-A:MessageID exposed by MessagecontextWhitespace not normalized as 
> prescribed by xsd:anyURI
> ---------------------------------------------------------------------------------------------
>
>                 Key: CXF-8285
>                 URL: https://issues.apache.org/jira/browse/CXF-8285
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>         Environment: {code}
> $ java -version
> openjdk version "11.0.6" 2020-01-14
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
> {code}
>            Reporter: Bhun Kho
>            Priority: Minor
>         Attachments: WsaMessageIdTest.java
>
>
> 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:
> # 
> systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
> #- Existing client/server testcase modified to test only the 
> MessageID-handling
> # 
> 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: 
> - https://github.com/javaee/jaxb-v2/issues/790.
> Workaround i'm using:
> - Custome jaxb to apply an adapter on xsd:anyURI like so :  
> https://stackoverflow.com/questions/7419951/how-to-configure-jaxb-so-it-trims-whitespaces-by-default



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to