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

Cannot install/merge XWikiPreferences with Distribution Wizard on subwiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.4, 6.0-rc-1
    • 5.4.3
    • None
    • XWiki 4.5.3 -> 5.4.3
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      It's not critical because we don't want this file to be imported anyway, but if it happens on XWikiPreferences, it could happen with any other file.
      It happened on 80% of our subwikis we tried to migrate from 4.5.3 to 5.4.3, it was't able to start merging XWikiPreferences.

      I attached the page to this Jira Task, but deleted the attachements before exporting it. I tried to migrate a wiki after deleting all the attachments of XWikiPreferences and it also failed.

      Failed to install document [platform:XWiki.XWikiPreferences]
      class java.lang.NullPointerException: null
          at com.xpn.xwiki.doc.XWikiDocument.merge(XWikiDocument.java:8439)
          at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.merge(DocumentMergeImporter.java:141)
          at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:89)
          at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:223)
          at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:174)
          at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:146)
          at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:136)
          at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:222)
          at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:186)
          at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:218)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:169)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:116)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:148)
          at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154)
          at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134)
          at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113)
          at java.lang.Thread.run(Unknown Source)
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            guillaumefenollar Guillaume Fenollar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: