You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2013/08/09 15:02:48 UTC

[jira] [Resolved] (CXF-5191) StaxUtils readQName does not accept leading and trailing whitespaces

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

Aki Yoshida resolved CXF-5191.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.7
                   2.6.10
                   3.0.0
    
> StaxUtils readQName does not accept leading and trailing whitespaces
> --------------------------------------------------------------------
>
>                 Key: CXF-5191
>                 URL: https://issues.apache.org/jira/browse/CXF-5191
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.6.9, 2.7.6
>            Reporter: Aki Yoshida
>            Assignee: Aki Yoshida
>             Fix For: 3.0.0, 2.6.10, 2.7.7
>
>
> 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)
> ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira