Opened 13 years ago

Closed 13 years ago

#1230 closed defect (fixed)

Using "Browse" in Packed file exporter results in an empty compressed file

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

Description (last modified by Nicklas Nordborg)

  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 (2)

comment:1 Changed 13 years ago by Nicklas Nordborg

Description: modified (diff)
Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 Changed 13 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [4724]) Fixes #1230: Using "Browse" in Packed file exporter results in an empty compressed file

Note: See TracTickets for help on using tickets.