Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4986

ADB generated code depends on bug in Woodstox (WSTX-231)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.6.1, 1.7.0
    • adb
    • None

    Description

      The ADBBeanTemplate contains the following piece of code (in registerPrefix):

      while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
      prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
      }

      According to the Javadoc of NamespaceContext, the getNamespaceURI method never returns null. The fact that Woodstox returns null for unbound prefixes is a known issue (WSTX-231) that has been fixed on the 4.0 branch.

      The ADB code needs to be updated to support both null and the empty string as return value of NamespaceContext#getNamespaceURI for unbound prefixes.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: