You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "eirbjo (via GitHub)" <gi...@apache.org> on 2023/04/18 17:37:14 UTC
[GitHub] [tomcat-jakartaee-migration] eirbjo commented on issue #46: "java.util.zip.ZipException: invalid entry size (expected 0 but got 913 bytes)" when opening migrated jar with `java.util.zip.ZipInputStream`
eirbjo commented on issue #46:
URL: https://github.com/apache/tomcat-jakartaee-migration/issues/46#issuecomment-1513560520
There is something funny going on with the source file being migrated here, [tomcat-embed-core-10.1.7.jar](https://repo1.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-core/10.1.7/tomcat-embed-core-10.1.7.jar)
`zipdetails` reports `UNEXPECTED PADDING`:
```
% zipdetails tomcat-embed-core-10.1.7.jar
000000 LOCAL HEADER #1 04034B50
000004 Extract Zip Spec 0A '1.0'
000005 Extract OS 00 'MS-DOS'
000006 General Purpose Flag 0800
[Bits 1-2] 0 'Normal Compression'
[Bit 11] 1 'Language Encoding'
000008 Compression Method 0008 'Deflated'
00000A Last Mod Time 565BA32E 'Mon Feb 27 20:25:28 2023'
00000E CRC 02F543C3
000012 Compressed Length 00000202
000016 Uncompressed Length 00000391
00001A Filename Length 0057
00001C Extra Length 0014
00001E Filename 'META-INF/native-
image/org.apache.tomcat.embed/tomcat-
embed-core/native-image.properties'
000075 Extra ID #0001 0001 'ZIP64'
000077 Length 0010
000079 PAYLOAD
00027B UNEXPECTED PADDING ....,.~,./.x....
00028B LOCAL HEADER #2 04034B50
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org