You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2019/09/02 19:24:00 UTC

[jira] [Created] (JCRVLT-362) ZipStreamArchive does not expose correct input source to the META-INF resources

Konrad Windszus created JCRVLT-362:
--------------------------------------

             Summary: ZipStreamArchive does not expose correct input source to the META-INF resources
                 Key: JCRVLT-362
                 URL: https://issues.apache.org/jira/browse/JCRVLT-362
             Project: Jackrabbit FileVault
          Issue Type: Bug
    Affects Versions: 3.2.8
            Reporter: Konrad Windszus
            Assignee: Konrad Windszus


After calling {{open}} on a given {{ZipStreamArchive}} the {{getInputSource}} does not correctly expose access to the input stream of the entries below {{META-INF}}. This is due to the fact that the input stream of those entries are already consumed once https://github.com/apache/jackrabbit-filevault/blob/202e86a98226d1e3fda4a3f9278f174fc4c6094d/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/io/ZipStreamArchive.java#L158 is reached. The solution would be to first copy to buffer/file and then read the meta inf from there.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)