jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (Jira)" <j...@apache.org>
Subject [jira] [Created] (JCRVLT-362) ZipStreamArchive does not expose correct input source to the META-INF resources
Date Mon, 02 Sep 2019 19:24:00 GMT
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)

Mime
View raw message