Error while Unzipping the downloaded file from sharefile | Citrix Case number: 78645360

  • 2
  • Problem
  • Updated 9 months ago
Hi there,

We have implemented sharefile
java integration few years ago, as part of the implementation we perform sharefile download api call and Unzip the downloaded content.

 Here is the problem statement

  • When we were using sharefile provided Storage zone (aka AWS), file download and Unzip is happening smooth
  • However when we switch the Storage zone from AWS to on-perm storage zone as described by Thomas, we were getting error with Unzip (Bad Signature Exception)

What’s puzzling us is we were using the same codebase (aka jar) file to unzip and it fails with On-Perm.

Did we miss anything with the on-perm storage setup? any help on this is highly appreciated.

 

Thank you!
Naga
Photo of Naga K

Naga K

  • 6 Posts
  • 0 Reply Likes

Posted 9 months ago

  • 2
Photo of Naga K

Naga K

  • 6 Posts
  • 0 Reply Likes
Here is the error message, we are getting while unzipping.

java.util.zip.ZipException: invalid LOC header (bad signature)
Stack Trace for developer assistance:
java.util.zip.ZipException: invalid LOC header (bad signature) at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:60) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:716) at java.io.InputStream.read(InputStream.java:101) at com.nmi.platform.core.util.CoreUtil.extractFile(CoreUtil.java:290) at com.nmi.platform.core.util.CoreUtil.unzip(CoreUtil.java:268)