[ https://issues.apache.org/jira/browse/COMPRESS-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096587#comment-14096587 ]
Stefan Bodewig commented on COMPRESS-287: ----------------------------------------- This is what 7z itself does to kDummy props. {code} case NID::kDummy: { for (UInt64 j = 0; j < size; j++) if (ReadByte() != 0) ThrowIncorrect(); addPropIdToList = false; break; } {code} it effectively ignores the property but asserts the content is all zeros. I'm going to implement it even sloppier and just skip it entirely (and fix the "unknown property" case which also throws an exception while I'm at it. > Support for 7z archives using "kDummy" > -------------------------------------- > > Key: COMPRESS-287 > URL: https://issues.apache.org/jira/browse/COMPRESS-287 > Project: Commons Compress > Issue Type: Bug > Components: Archivers > Affects Versions: 1.8.1 > Environment: Tika from truck build. > Reporter: sunxingzhe > Labels: 7z > Fix For: 1.9 > > Attachments: Archive.7z > > > When Commons Compress 1.8.1 parse the attachment file:Archive.7z, the > following error occurred. > org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException from > org.apache.tika.parser.pkg.PackageParser@886b178 > EndTime: 1407899886604 > at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:248) > at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242) > at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:148) > at org.apache.tika.Tika.parseToString(Tika.java:381) > at fileparser.fileparser_jsonstring(fileparser.java:116) > at test.main(test.java:26) > Caused by: java.io.IOException: kDummy is unsupported, please report > at > org.apache.commons.compress.archivers.sevenz.SevenZFile.readFilesInfo(SevenZFile.java:711) > at > org.apache.commons.compress.archivers.sevenz.SevenZFile.readHeader(SevenZFile.java:242) > at > org.apache.commons.compress.archivers.sevenz.SevenZFile.readHeaders(SevenZFile.java:198) > at > org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:95) > at > org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:117) > at org.apache.tika.parser.pkg.PackageParser.parse(PackageParser.java:133) > at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242) > ... 5 more -- This message was sent by Atlassian JIRA (v6.2#6252)