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

StaxUtils readQName does not accept leading and trailing whitespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.9, 2.7.6
    • 2.6.10, 2.7.7, 3.0.0-milestone1
    • Core
    • 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)
      ...

      Attachments

        Activity

          People

            ay Akitoshi Yoshida
            ay Akitoshi Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: