Opened 3 years ago

Closed 2 years ago

#24 closed defect (fixed)

cleanUp fails by new empty archive

Reported by: martinP Owned by: Martin Scharm <martin@…>
Priority: major Milestone:
Component: code Version:
Keywords: Cc: martin


In CombineArchive.cleanUp(Path p) line 1375 throws an error, when creating a new archive.
cf. source:/src/main/java/de/unirostock/sems/cbarchive/

	at com.sun.nio.zipfs.ZipFileSystem.removeFromTree(
	at com.sun.nio.zipfs.ZipFileSystem.updateDelete(
	at com.sun.nio.zipfs.ZipFileSystem.deleteFile(
	at com.sun.nio.zipfs.ZipPath.delete(
	at com.sun.nio.zipfs.ZipFileSystemProvider.delete(
	at java.nio.file.Files.delete(
	at de.unirostock.sems.cbarchive.CombineArchive.cleanUp(
	at de.unirostock.sems.cbarchive.CombineArchive.cleanUp(
	at de.unirostock.sems.cbarchive.CombineArchive.<init>(
	at de.unirostock.sems.cbarchive.web.UserManager.createArchive(
	at de.unirostock.sems.cbarchive.web.UserManager.createArchive(

Change History (1)

comment:1 Changed 2 years ago by Martin Scharm <martin@…>

  • Owner set to Martin Scharm <martin@…>
  • Resolution set to fixed
  • Status changed from new to closed

In f239cf7b98d740d54c5841ca953c7741bbb9076d:

do not fail anymore for newly created files [fixes #24]

new the constructor checks if file has size 0 if it exists. in that case it simply gets deleted...

also added a test for that

Note: See TracTickets for help on using tickets.