Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5937

XML export methods returning an Element don't work anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 M2, 2.7.1
    • 3.0 M1
    • {Unused} Core
    • None
    • regression
    • Unit
    • Trivial

    Description

      For example com.xpn.xwiki.doc.XWikiAttachment.toXML(boolean, boolean, XWikiContext) returns an empty <attachment/> Element.

      This is caused by a bug inside com.xpn.xwiki.internal.xml.DOMXMLWriter.write(Element) and com.xpn.xwiki.internal.xml.DOMXMLWriter.writeOpen(Element) which actually have their behaviors reversed. Thus, instead of writing the start tag of the container <attachment> element, the whole DOM document is written, and everything else is ignored.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: