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

Importing XAR containing pages with attachments generate an error in the logs when using the packager plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.7
    • None
    • Unknown

    Description

      To reproduce:

      • Build xwiki-platform-observation-test-tests

      Logs:

      [INFO]   ... Importing XAR file: /Users/vmassol/.m2/repository/org/xwiki/platform/xwiki-platform-administration-ui/12.8-SNAPSHOT/xwiki-platform-administration-ui-12.8-SNAPSHOT.xar
      [ERROR] Failed to create the source from the content of the attachment [Attachment xwiki:XWiki.GoogleAnalyticsCode@analytics.png]
      com.xpn.xwiki.XWikiException: Error number 3002 in 3: The attachment [Attachment xwiki:XWiki.GoogleAnalyticsCode@analytics.png] (file /Users/vmassol/dev/xwiki/xwiki-platform/xwiki-platform-core/xwiki-platform-observation/xwiki-platform-observation-test/xwiki-platform-observation-test-tests/target/xwiki-1/data/store/file/xwiki/1/7/b99e91f24d95f0e9391c1a4ee3f13f/attachments/2/5/e57ab7e5d01e79818e87dc945b65d9/f.png) could not be found in the filesystem attachment store.
          at org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore.loadAttachmentContent (FilesystemAttachmentStore.java:214)
          at com.xpn.xwiki.doc.XWikiAttachment.loadAttachmentContent (XWikiAttachment.java:1094)
          at com.xpn.xwiki.doc.XWikiAttachment.getAttachmentContent (XWikiAttachment.java:785)
          at com.xpn.xwiki.internal.filter.input.XWikiAttachmentEventGenerator.getAttachmentSource (XWikiAttachmentEventGenerator.java:159)
          at com.xpn.xwiki.internal.filter.input.XWikiAttachmentEventGenerator.getAttachmentSource (XWikiAttachmentEventGenerator.java:148)
          at com.xpn.xwiki.internal.filter.input.XWikiAttachmentEventGenerator.beginEndAttachment (XWikiAttachmentEventGenerator.java:130)
          at com.xpn.xwiki.internal.filter.input.XWikiAttachmentEventGenerator.writeAttachment (XWikiAttachmentEventGenerator.java:120)
          at com.xpn.xwiki.internal.filter.input.XWikiAttachmentEventGenerator.write (XWikiAttachmentEventGenerator.java:112)
          at com.xpn.xwiki.internal.filter.input.XWikiDocumentLocaleEventGenerator.writeRevision (XWikiDocumentLocaleEventGenerator.java:204)
          at com.xpn.xwiki.internal.filter.input.XWikiDocumentLocaleEventGenerator.write (XWikiDocumentLocaleEventGenerator.java:125)
          at com.xpn.xwiki.internal.filter.input.XWikiDocumentLocaleEventGenerator.write (XWikiDocumentLocaleEventGenerator.java:56)
          at org.xwiki.filter.instance.internal.input.AbstractBeanEntityEventGenerator.write (AbstractBeanEntityEventGenerator.java:131)
          at com.xpn.xwiki.internal.filter.XWikiDocumentFilterUtils.exportEntity (XWikiDocumentFilterUtils.java:334)
          at org.xwiki.store.legacy.store.internal.DeletedDocumentContentFileSerializer.serialize (DeletedDocumentContentFileSerializer.java:85)
          at org.xwiki.store.FileSaveTransactionRunnable.onRun (FileSaveTransactionRunnable.java:156)
          at org.xwiki.store.TransactionRunnable.run (TransactionRunnable.java:318)
          at org.xwiki.store.StartableTransactionRunnable.start (StartableTransactionRunnable.java:54)
          at org.xwiki.store.legacy.store.internal.FilesystemRecycleBinContentStore.save (FilesystemRecycleBinContentStore.java:89)
          at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.lambda$saveToRecycleBin$0 (XWikiHibernateRecycleBinStore.java:284)
          at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute (XWikiHibernateBaseStore.java:820)
          at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite (XWikiHibernateBaseStore.java:935)
          at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin (XWikiHibernateRecycleBinStore.java:274)
          at com.xpn.xwiki.XWiki.deleteDocument (XWiki.java:4564)
          at com.xpn.xwiki.XWiki.saveDocument (XWiki.java:2022)
          at com.xpn.xwiki.XWiki.saveDocument (XWiki.java:1963)
          at com.xpn.xwiki.plugin.packaging.Package.installDocument (Package.java:911)
          at com.xpn.xwiki.plugin.packaging.Package.install (Package.java:696)
          at com.xpn.xwiki.tool.backup.Importer.installWithUser (Importer.java:153)
          at com.xpn.xwiki.tool.backup.Importer.importXAR (Importer.java:128)
          at org.xwiki.tool.packager.PackageMojo.importXARs (PackageMojo.java:407)
          at org.xwiki.tool.packager.PackageMojo.executeInternal (PackageMojo.java:260)
          at org.xwiki.tool.extension.util.AbstractExtensionMojo.execute (AbstractExtensionMojo.java:134)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: