[
https://issues.apache.org/jira/browse/CXF-8285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17173625#comment-17173625
]
Bhun Kho commented on CXF-8285:
-------------------------------
No worries, thanks for looking into thi the adapater approach is working fine
for me.
I am wondering whether the
[WSaddressingFeature.setAllowDuplicates|https://cxf.apache.org/javadoc/latest-2.3.x/org/apache/cxf/ws/addressing/WSAddressingFeature.html#setAllowDuplicates(boolean)
] is behaving 'spec compliant' though - but that's probably not a big deal
otherwise it'd be reported ages ago. :D
> 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: DispatchClientServerTest.java, 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)