marklogic/xqsync — Issue #2: Invalid zip files being generated
Author: damonfeldman
Created: 2012-02-23 21:12:14+00:00
State: open

For some reason, our xqsync zip file created by an export xqsync process can't be opened by the import xqsync process. Linux unzip can open it, however.

Initially we thought this was because of double-slashes ("//") in some URIs creating invalid filenames inside the zip, but after excluding them the zip is still not working. Error reads:

2012-02-23 13:04:56.494 SEVERE: fatal error
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.zip.ZipFile.(Unknown Source)
at com.marklogic.ps.xqsync.InputPackage.(InputPackage.java:73)

Additional diagnostics or tips here would be appreciated.