Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 442704

Summary: ClientExport does not export empty directories
Product: [ECD] Orion Reporter: Michael Ochmann <michael.ochmann>
Component: ServerAssignee: Michael Ochmann <michael.ochmann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse
Version: unspecified   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Ochmann CLA 2014-08-27 09:24:49 EDT
When exporting a project with empty directories as ZIP archive and re-importing that ZIP archive again, empty directories are gone. Looking into org.eclipse.orion.internal.server.servlets.xfer.ClientExport it seems that the write method only adds zip entries for files but not for the directory structure.
In contrast, ClientImport handles imports of ZIP archives with empty directories perfectly well.

Since export/import in Orion is commonly used for transfering projects between workspaces or between Orion and some offline tools I would have expected that the directory structure is preserved. Eclipse for example exports empty directories in ZIP archives.

Is that behavior of Orion on purpose?
Comment 1 Michael Ochmann CLA 2014-08-27 09:28:45 EDT
A fix for that issue would be fairly simple:
https://git.eclipse.org/r/#/c/32402/
Comment 2 John Arthorne CLA 2015-05-05 16:33:45 EDT
Bug was assigned to an inactive contributor. Moving back to inbox.