-
Bug
-
Resolution: Fixed
-
Major
-
3.4.0
-
None
-
4.3 RC2
When importing, I got the error:
java.nio.file.NotDirectoryException: /sites at jdk.zipfs/jdk.nio.zipfs.ZipDirectoryStream.<init>(ZipDirectoryStream.java:58) at jdk.zipfs/jdk.nio.zipfs.ZipPath.newDirectoryStream(ZipPath.java:714) at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newDirectoryStream(ZipFileSystemProvider.java:257) at java.base/java.nio.file.Files.newDirectoryStream(Files.java:603) at org.ametys.plugins.contentio.archive.ZipEntryHelper.children(ZipEntryHelper.java:105) at org.ametys.plugins.webcontentio.archive.SiteImporter$SiteRetriever._getThreeDepthPaths(SiteImporter.java:136) at org.ametys.plugins.webcontentio.archive.SiteImporter$SiteRetriever.getThreeDepthPaths(SiteImporter.java:130) at org.ametys.plugins.webcontentio.archive.SiteImporter._retrieveSites(SiteImporter.java:106) at org.ametys.plugins.webcontentio.archive.SiteImporter.importSites(SiteImporter.java:87) at org.ametys.plugins.webcontentio.archive.SitesArchiver._partialImport(SitesArchiver.java:672) at org.ametys.plugins.webcontentio.archive.SitesArchiver.partialImport(SitesArchiver.java:597) 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.ArchiveHandler.importAll(ArchiveHandler.java:264) at org.ametys.plugins.contentio.archive.ImportArchiveSchedulable._import(ImportArchiveSchedulable.java:108) at org.ametys.plugins.contentio.archive.ImportArchiveSchedulable.execute(ImportArchiveSchedulable.java:77) at org.ametys.core.schedule.AmetysJob.execute(AmetysJob.java:151) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Because there is no sites folder.
It should be present in the ZIP as "sites" archiver is referenced in the manifest.json, so the exporter should create the folder.