//EXPECTED_FAILURES.add("poifs/protected_sha512.xlsx");
//EXPECTED_FAILURES.add("poifs/extenxls_pwd123.xlsx");
//EXPECTED_FAILURES.add("poifs/protected_agile.docx");
+ EXPECTED_FAILURES.add("spreadsheet/58616.xlsx");
// TODO: fails XMLExportTest, is this ok?
EXPECTED_FAILURES.add("spreadsheet/CustomXMLMapping-singleattributenamespace.xlsx");
_length = dis.readLong();
+ if(getSecretKey() == null) {
+ verifyPassword(null);
+ }
// limit wrong calculated ole entries - (bug #57080)
// standard encryption always uses aes encoding, so blockSize is always 16
// http://stackoverflow.com/questions/3283787/size-of-data-after-aes-encryption
import java.io.ByteArrayInputStream;\r
import java.io.ByteArrayOutputStream;\r
import java.io.File;\r
+import java.io.FileInputStream;\r
import java.io.IOException;\r
import java.io.InputStream;\r
import java.security.GeneralSecurityException;\r
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;\r
import org.apache.poi.poifs.filesystem.POIFSFileSystem;\r
import org.apache.poi.util.IOUtils;\r
+import org.apache.poi.xssf.XSSFTestDataSamples;\r
import org.junit.Test;\r
\r
/**\r
zis.close();\r
fs.close();\r
}\r
+\r
+ @Test\r
+ public void test58616() throws IOException, GeneralSecurityException {\r
+ POIFSFileSystem pfs = new POIFSFileSystem(new FileInputStream(XSSFTestDataSamples.getSampleFile("58616.xlsx"))); \r
+ EncryptionInfo info = new EncryptionInfo(pfs); \r
+ Decryptor dec = Decryptor.getInstance(info); \r
+ //dec.verifyPassword(null);\r
+ dec.getDataStream(pfs);\r
+ }\r
}
\ No newline at end of file