aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2014-11-04 23:22:50 +0000
committerNick Burch <nick@apache.org>2014-11-04 23:22:50 +0000
commitdc12c0ab12306d0ab3fdb994651fcf0eb2660833 (patch)
treeba3d992c468087397eada029946bb1479b9c5832 /src/testcases/org/apache
parentfc89aa8af7513d855d0c8f1639ba3131ac97c24b (diff)
downloadpoi-dc12c0ab12306d0ab3fdb994651fcf0eb2660833.tar.gz
poi-dc12c0ab12306d0ab3fdb994651fcf0eb2660833.zip
FilePassRecord type of 4 is now documented as the same as 2 & 3, see bug #35897
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1636776 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache')
-rw-r--r--src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java1
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
index 9083fbdf75..ff8e18937e 100644
--- a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
+++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
@@ -36,6 +36,7 @@ public class TestBiffViewer extends BaseXLSIteratingTest {
SILENT_EXCLUDED.add("43493.xls"); // HSSFWorkbook cannot open it as well
SILENT_EXCLUDED.add("password.xls");
SILENT_EXCLUDED.add("46904.xls");
+ SILENT_EXCLUDED.add("35897-type4.xls"); // unsupported crypto api header
SILENT_EXCLUDED.add("xor-encryption-abc.xls"); // unsupported XOR-encryption
}
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
index 575e3b4850..015c8c5950 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -2460,6 +2460,13 @@ public final class TestBugs extends BaseTestBugzillaIssues {
} finally {
Biff8EncryptionKey.setCurrentUserPassword(null);
}
+
+ // One using the only-recently-documented encryption header type 4,
+ // and the RC4 CryptoAPI encryption header structure
+ try {
+ openSample("35897-type4.xls");
+ fail("POI doesn't currently support the RC4 CryptoAPI encryption header structure");
+ } catch (EncryptedDocumentException e) {}
}
@Test