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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 1.2 M1
    • Fix Version/s: 1.1.2, 1.2 M2
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: