Correctly create folders in the Copy command --------------------------------------------
Key: NXP-8048 URL: https://jira.nuxeo.com/browse/NXP-8048 Project: Nuxeo Enterprise Platform Issue Type: Bug Components: Admin Center Reporter: Thomas Roger Assignee: Thomas Roger Fix For: 5.5 When installing a MP with a template with more than one level of folders, the folders are not correctly created and we end up with: {code} org.nuxeo.connect.update.PackageException: Failed to copy /opt/starship/data/packages/store/nuxeo-social-collaboration-5.5.0-SNAPSHOT/install/templates/collaboration/config/social-collaboration-config.xml at org.nuxeo.connect.update.impl.task.commands.Copy.doCopy(Copy.java:259) at org.nuxeo.connect.update.impl.task.commands.Copy.doCopy(Copy.java:148) at org.nuxeo.connect.update.impl.task.commands.Copy.doCopy(Copy.java:148) at org.nuxeo.connect.update.impl.task.commands.Copy.doCopy(Copy.java:148) at org.nuxeo.connect.update.impl.task.commands.Copy.doRun(Copy.java:129) at org.nuxeo.connect.update.impl.task.commands.AbstractCommand.run(AbstractCommand.java:112) at org.nuxeo.connect.update.impl.task.CommandsTask.doRun(CommandsTask.java:119) at org.nuxeo.connect.update.impl.task.InstallTask.doRun(InstallTask.java:51) at org.nuxeo.connect.update.impl.task.AbstractTask.run(AbstractTask.java:239) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.performTask(LocalPackageManager.java:354) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.updatePackage(LocalPackageManager.java:330) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.update(LocalPackageManager.java:273) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.run(LocalPackageManager.java:148) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.main(LocalPackageManager.java:105) Caused by: java.io.FileNotFoundException: /opt/starship/nuxeo-dm-5.5-SNAPSHOT-tomcat/templates/collaboration/config.tmp (Not a directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:145) at org.nuxeo.common.utils.FileUtils.copyFile(FileUtils.java:358) at org.nuxeo.common.utils.FileUtils.copy(FileUtils.java:341) at org.nuxeo.connect.update.impl.task.commands.Copy.doCopy(Copy.java:250) ... 13 more {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets