Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.9, 2.7.6
-
None
-
Unknown
Description
According to XML Schema Datatype spec, QName allows leading and trailing whitespaces (as it has the whitespace facet with fixed value "collapse" that means the leading and trailing whitespaces are removed).
As StaxUtils.readQName(XMLStream reader) is not following this rule, you may get the exception such as:
java.lang.RuntimeException: Invalid QName in mapping: soap:Server
at org.apache.cxf.staxutils.StaxUtils.readQName(StaxUtils.java:1533)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:64)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
...