[
https://issues.jboss.org/browse/JBVFS-202?page=com.atlassian.jira.plugin....
]
Martin Both updated JBVFS-202:
------------------------------
Description:
I'm try to use the Embeddable EJBContainer of JBoss EAP 6.4.
I get a ZipException: invalid CEN header (bad signature)
JBoss writes an invalid Zip- file in
JBossEAP6.4\standalone\data\content\58\a481cdfbe31a8ad823b6708f17151589954ac6/content
The reason is, that the zip file content contains a Local file header with no size for the
file data. No Zip-Tool can unzip that and even JBoss cannot read that again.
Compare the method bufferLocalFileHeader() with the method bufferNextCentralFileHeader()
of class org.jboss.vfs,VirtualJarFileInputStream.
The one wirtes file sizes the other one not. If you would read the file format
specification of zip files than you would know that after the LocallFileHeader the file
data is written. Without knowledge of the compressed size it is not possible to read
that.
Deployment with Embeddable EJBContainer does not work for me due to this bug.
Invalid Local file header in ZIP file
-------------------------------------
Key: JBVFS-202
URL:
https://issues.jboss.org/browse/JBVFS-202
Project: JBoss VFS
Issue Type: Bug
Reporter: Martin Both
Assignee: Tomaz Cerar
I'm try to use the Embeddable EJBContainer of JBoss EAP 6.4.
I get a ZipException: invalid CEN header (bad signature)
JBoss writes an invalid Zip- file in
JBossEAP6.4\standalone\data\content\58\a481cdfbe31a8ad823b6708f17151589954ac6/content
The reason is, that the zip file content contains a Local file header with no size for
the file data. No Zip-Tool can unzip that and even JBoss cannot read that again.
Compare the method bufferLocalFileHeader() with the method bufferNextCentralFileHeader()
of class org.jboss.vfs,VirtualJarFileInputStream.
The one wirtes file sizes the other one not. If you would read the file format
specification of zip files than you would know that after the LocallFileHeader the file
data is written. Without knowledge of the compressed size it is not possible to read
that.
Deployment with Embeddable EJBContainer does not work for me due to this bug.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)