Uploaded image for project: 'Content IO'
  1. Content IO
  2. CONTENTIO-184

Data import : wiki pages inaccessible after workspaces import

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4.0
    • None
    • None
    • 4.3 RC1
    • 4.3 RC3

      How to reproduce the problem : 

      1/ On a workspace, create a new wiki page (with a title and a content). 

      This wiki page is visible. 

      2/ On admin : realize an export. 

      3/ Delete the workspace. 

      4/ Realize an import of only this workspace. 

      5/ When I chek front of the imported workspace, I can see the created page on wiki, but when I click on it, the wiki page is not opened. (Nothing is done). 

      (F12 console displays that : 

      DevTools failed to parse SourceMap: http://intranet2.adele.anyware.corp:10001/espaceprojetmag/fr/wiki/LTE3MDI3MzcxMzA.js.map)

          [CONTENTIO-184] Data import : wiki pages inaccessible after workspaces import

          Simon Prieul (Inactive) added a comment - - edited

          Workflow is not exported, so contents are not validated, and thus not in live after import

          Simon Prieul (Inactive) added a comment - - edited Workflow is not exported, so contents are not validated, and thus not in live after import

          Simon Prieul (Inactive) added a comment - - edited

          It seems to me that an import of a unique project is not currently possible.

          Importing the site does not import the workspace

          And we can only import the plugin 'workspaces', which uses the default implementation of PluginArchiver, and therefore will import all workspaces.

           

          As a result, what I did was importing 'Plugin workspaces (2.0)' + 'Site myProject' with merge policy 'Replace existing ids'.

           

          Then I got some workflow errors on Wiki content Types :

           

          Message:		An unexpected exception occured when trying to import Content for 'G:\ametys_homes\intranet_40\cms\data\archives\contentio-184.zip!/sites/ee/a8/projet-03-2020/contents/52/23/wiki/content.xml'.
          Location:	org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._importContent(ContentsArchiverHelper.java:388)
          Thrown:
          com.opensymphony.workflow.InvalidActionException: Invalid Initial Action #0
          	at com.opensymphony.workflow.AbstractWorkflow.canInitialize(AbstractWorkflow.java:1426)
          	at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:610)
          	at org.ametys.plugins.workflow.AbstractAmetysWorkflow.initialize(AbstractAmetysWorkflow.java:99)
          	at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._handleWorkflow(ContentsArchiverHelper.java:551)
          	at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._createContent(ContentsArchiverHelper.java:424)
          	at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._importContent(ContentsArchiverHelper.java:371)
          	at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer.importRoot(ContentsArchiverHelper.java:286)
          	at org.ametys.plugins.contentio.archive.ContentsArchiverHelper.importContents(ContentsArchiverHelper.java:214)
          	at org.ametys.plugins.webcontentio.archive.SiteImporter._importContents(SiteImporter.java:282)
          	at org.ametys.plugins.webcontentio.archive.SiteImporter._createSite(SiteImporter.java:231)
          	at org.ametys.plugins.webcontentio.archive.SiteImporter._importSite(SiteImporter.java:185)
          	at org.ametys.plugins.webcontentio.archive.SiteImporter.importSite(SiteImporter.java:101)
          	at org.ametys.plugins.webcontentio.archive.SitesArchiver._partialImport(SitesArchiver.java:672)
          	at org.ametys.plugins.webcontentio.archive.SitesArchiver.partialImport(SitesArchiver.java:591)
          	at org.ametys.plugins.contentio.archive.ArchiveHandler._partialImport(ArchiveHandler.java:247)
          	at org.ametys.plugins.contentio.archive.ArchiveHandler.partialImport(ArchiveHandler.java:279)
          	at org.ametys.plugins.contentio.archive.ImportArchiveSchedulable._import(ImportArchiveSchedulable.java:92)
          	at org.ametys.plugins.contentio.archive.ImportArchiveSchedulable.execute(ImportArchiveSchedulable.java:65) 

          Due to the lack of action '0' for workflow editionfo

          Maybe that is why you have your issue ? After fixing that (with the provided Pull Request), my import works without error in logs for me.

          Then after a live rebuild, it works well in live preview

          Simon Prieul (Inactive) added a comment - - edited It seems to me that an import of a unique project is not currently possible. Importing the site does not import the workspace And we can only import the plugin 'workspaces', which uses the default implementation of PluginArchiver, and therefore will import all workspaces.   As a result, what I did was importing 'Plugin workspaces (2.0)' + 'Site myProject' with merge policy 'Replace existing ids'.   Then I got some workflow errors on Wiki content Types :   Message: An unexpected exception occured when trying to import Content for 'G:\ametys_homes\intranet_40\cms\data\archives\contentio-184.zip!/sites/ee/a8/projet-03-2020/contents/52/23/wiki/content.xml'. Location: org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._importContent(ContentsArchiverHelper.java:388) Thrown: com.opensymphony.workflow.InvalidActionException: Invalid Initial Action #0 at com.opensymphony.workflow.AbstractWorkflow.canInitialize(AbstractWorkflow.java:1426) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:610) at org.ametys.plugins.workflow.AbstractAmetysWorkflow.initialize(AbstractAmetysWorkflow.java:99) at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._handleWorkflow(ContentsArchiverHelper.java:551) at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._createContent(ContentsArchiverHelper.java:424) at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer._importContent(ContentsArchiverHelper.java:371) at org.ametys.plugins.contentio.archive.ContentsArchiverHelper$Importer.importRoot(ContentsArchiverHelper.java:286) at org.ametys.plugins.contentio.archive.ContentsArchiverHelper.importContents(ContentsArchiverHelper.java:214) at org.ametys.plugins.webcontentio.archive.SiteImporter._importContents(SiteImporter.java:282) at org.ametys.plugins.webcontentio.archive.SiteImporter._createSite(SiteImporter.java:231) at org.ametys.plugins.webcontentio.archive.SiteImporter._importSite(SiteImporter.java:185) at org.ametys.plugins.webcontentio.archive.SiteImporter.importSite(SiteImporter.java:101) at org.ametys.plugins.webcontentio.archive.SitesArchiver._partialImport(SitesArchiver.java:672) at org.ametys.plugins.webcontentio.archive.SitesArchiver.partialImport(SitesArchiver.java:591) at org.ametys.plugins.contentio.archive.ArchiveHandler._partialImport(ArchiveHandler.java:247) at org.ametys.plugins.contentio.archive.ArchiveHandler.partialImport(ArchiveHandler.java:279) at org.ametys.plugins.contentio.archive.ImportArchiveSchedulable._import(ImportArchiveSchedulable.java:92) at org.ametys.plugins.contentio.archive.ImportArchiveSchedulable.execute(ImportArchiveSchedulable.java:65) Due to the lack of action '0' for workflow editionfo Maybe that is why you have your issue ? After fixing that (with the provided Pull Request), my import works without error in logs for me. Then after a live rebuild, it works well in live preview

            Unassigned Unassigned
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: