Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6909

Fix the generation of the ZIP archive which contains the workflow definitions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.1.1
    • Component/s: Workflow

      Description

      When using JDK 11.0.20 to start Nuxeo with a Studio project containing Workflow definitions, the startup fails with this error

      ERROR [ComponentManagerImpl] An error occurred during afterStart listener execution
      org.nuxeo.ecm.core.api.NuxeoException: Cannot create document of type File in container with type DocumentRouteModelsRoot
      	at org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter.checkAllowedSubtypes(AbstractFileImporter.java:442) ~[nuxeo-platform-filemanager-2021.36.9.jar:?]
      	at org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter.createOrUpdate(AbstractFileImporter.java:227) ~[nuxeo-platform-filemanager-2021.36.9.jar:?]
      	at org.nuxeo.ecm.platform.filemanager.service.FileManagerService.createOrUpdateDocument(FileManagerService.java:362) ~[nuxeo-platform-filemanager-2021.36.9.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.importRouteModel(DocumentRoutingServiceImpl.java:693) ~[nuxeo-routing-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.importAllRouteModels(DocumentRoutingServiceImpl.java:675) ~[nuxeo-routing-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.listener.RouteModelsInitializator.lambda$importWorkflows$1(RouteModelsInitializator.java:59) ~[nuxeo-routing-core-2021.36.9.jar:?]
      

      This is due to the fact that the zip lib in the JDK fails to open the ZIP archive with this error

      java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
      

      Based on the fact that the default workflow definitions (included in nuxeo-routing-default) can be successfully imported, the problem has probably been introduced by NXP-30713

       

      TODO:

      • Try to set the nuxeo.core.io.archive.extra.files.count property to false in Studio App
      • See with platform team if it should be set to true by default or if smth else should be done

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmartins Thierry Martins
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: