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

Imported orphan documents get XWiki.WebHome as their parent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.2 RC1
    • 2.2 M2
    • {Unused} Core
    • None
    • Trivial

    Description

      I noticed that during the import all documents that don't have a parent set get a default value of XWiki.WebHome. This is a change introduced by the new model. Since in the XML the parent is empty, and setParent now uses a document reference, parsing the empty reference results in XWiki.WebHome as the target document.

      Setting an empty parent from the web editor works, since there's a special check for empty in setParent(String).

      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: