poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51623] AgileDecryptor cycles
Date Mon, 21 Apr 2014 16:18:16 GMT

Andreas Beeker <andreas.beeker@gmx.de> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Depends on|                            |55818
         Resolution|---                         |WORKSFORME

--- Comment #5 from Andreas Beeker <andreas.beeker@gmx.de> ---
In the ChunkedCipherInputStream.read method there was a fix as part of #55818 -
so I assume this issue has been fixed there.

The first attachment (Voti_37a_SerieA.xls) is a html file, which can be handled
by Libre Office and MS Excel (but not MS Excel Viewer), so it's not relevant
for this bug report.

The second attachment can be successfully read with the attached
TestDecryptor-code and the following code ... so this works-for-me ;)

NPOIFSFileSystem fs = new NPOIFSFileSystem(new File("encrypted.xlsx"));
EncryptionInfo info = new EncryptionInfo(fs);

Decryptor d = Decryptor.getInstance(info);


InputStream is = d.getDataStream(fs);
XSSFWorkbook wb = new XSSFWorkbook(is);

Iterator<Row> row = wb.getSheetAt(0).rowIterator();
while (row.hasNext()) {
    Cell c = row.next().getCell(0);
    if (c == null) continue;

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message