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

Space in namespace localName causes org.w3c.dom.DOMException: INVALID_CHARACTER_ERR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.0.12, 2.1.6, 2.2.3
    • None
    • None

    Description

      On line 97 of the Soap12FaultOutInterceptor, an attempt is made to write an attribute using the following code:

      writer.writeAttribute("xml", "http://www.w3.org/XML/1998/namespace", "lang ", getLangCode());

      The 3rd parameter has a trailing space and fails with the following exception:

      org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.

      I was able to copy this class into my source code and remove the space, which solved the issue

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            zack Zack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: