Opened 15 years ago

Last modified 15 years ago

#1230 closed defect

Using "Browse" in Packed file exporter results in an empty compressed file — at Initial Version

Reported by: Nicklas Nordborg Owned by: everyone
Priority: major Milestone: BASE 2.9.3
Component: coreplugins Version:
Keywords: Cc:

Description

  1. Go to the File manager (View -> Files)
  2. Browse to a directory and select at least one file or directory
  3. Click on "Export".
  4. Select the "Packed file exporter" plug-in and "GZipped TAR archive". Click Next.
  5. Select the "Save as" parameter and click on the "Browse" button.
  6. Click on "Cancel" in the popup window. Make sure that the value for the "Save as" parameter hasn't changed.
  7. Click "Next" and finsh the configuration wizard.
  8. Wait for the job to finish.
  9. The plug-in should complete successfully, but reports: Done: 0 file(s) and directories compressed successfully.

Note! If the ZIP format is selected instead of Gzipped TAR in step 4 the plug-in fails with:

java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146)
at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)
at net.sf.basedb.util.zip.ZipFilePacker.close(ZipFilePacker.java:116)
at net.sf.basedb.plugins.PackedFileExporter.performExport(PackedFileExporter.java:433)
at net.sf.basedb.core.plugin.AbstractExporterPlugin.run(AbstractExporterPlugin.java:144)
at net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:106)
at net.sf.basedb.core.InternalJobQueue$JobRunner.run(InternalJobQueue.java:504)
at java.lang.Thread.run(Thread.java:619)

Note! If step 5 is skipped, everything works as expected.

Change History (0)

Note: See TracTickets for help on using tickets.