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

Import document containing no "version" element will corrupt the document.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.2, 1.2 M2
    • 1.1.1, 1.2 M1
    • {Unused} Core
    • None

    Description

      When calling for XWikiDocument.fromXML all XML elements that does not exit set field to empty string. Problem is that version value to null is supported but empty string will make new Version("") that fail when using XWikiDocument.incrementVersion in XWikiHibernateStore.saveXWikiDoc.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: