[
https://issues.apache.org/jira/browse/TIKA-3110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134396#comment-17134396
]
Tim Allison commented on TIKA-3110:
-----------------------------------
Hahaha, y, I was going to point out something similar
I think this is unrelated to my above concern, but good to keep in mind. For
FileInputStream
(https://docs.oracle.com/javase/7/docs/api/java/io/FileInputStream.html#skip(long))
, it can lie:
>This produces no exception and the number of bytes skipped may include some
>number of bytes that were beyond the EOF of the backing file.
Which is why IOUtils reads rather than skips:
https://github.com/apache/commons-io/blob/master/src/main/java/org/apache/commons/io/IOUtils.java#L1942
> cannot extract metadata from 7z .tar archive
> --------------------------------------------
>
> Key: TIKA-3110
> URL: https://issues.apache.org/jira/browse/TIKA-3110
> Project: Tika
> Issue Type: Bug
> Components: mime, parser
> Affects Versions: 1.24.1
> Reporter: Alex
> Priority: Major
> Attachments: 7ztar.tar
>
>
> When I extracted metadata from .tar archive wich was created by linux bash
> it's works as I expect but if .tar archive was created by 7z I got an error:
> TikaException: TIKA-198: Illegal IOException from
> org.apache.tika.parser.pkg.PackageParser@4d0f2471
> I created a project on GitHub for your convenience. It includes 2 files and
> code for play around: [https://github.com/AlexOkayJ/apache-tika-tar-issue.git]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)