Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2014-05-13 14:49:35 +0000
committerThomas Watson2014-05-13 14:56:32 +0000
commit3b6255987c37ad69a263385e9535109f0ee0ef41 (patch)
tree24b41a865edd1dbea81ee46b03f01398ca66557f
parent6b81e87c3e0e3b7458c86e86d68068a9bcec7573 (diff)
downloadrt.equinox.framework-3b6255987c37ad69a263385e9535109f0ee0ef41.tar.gz
rt.equinox.framework-3b6255987c37ad69a263385e9535109f0ee0ef41.tar.xz
rt.equinox.framework-3b6255987c37ad69a263385e9535109f0ee0ef41.zip
filenames - Add a new testcase Change-Id: If19844ffaa4fba60c8fe616e1f7e73694063cba6 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/SignedBundleTest.java18
-rw-r--r--bundles/org.eclipse.osgi.tests/test_files/security/bundles/bundleWithNonAsciiCharsFilename.jarbin0 -> 2530 bytes
2 files changed, 17 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/SignedBundleTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/SignedBundleTest.java
index 608d0413b..66d81b7ef 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/SignedBundleTest.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/SignedBundleTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2012 IBM Corporation and others.
+ * Copyright (c) 2007, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -909,4 +909,20 @@ public class SignedBundleTest extends BaseSecurityTest {
}
}
}
+
+ public void testBug434711() {
+ try {
+ File nonAsciiFile = getEntryFile(getTestJarPath("bundleWithNonAsciiCharsFilename"));
+
+ assertNotNull("Could not find Non Ascii Chars file!", nonAsciiFile);
+ SignedContent signedContent = getSignedContentFactory().getSignedContent(nonAsciiFile);
+ assertNotNull("SignedContent is null", signedContent);
+ assertTrue("Content is not signed!!", signedContent.isSigned());
+ for (SignedContentEntry entry : signedContent.getSignedEntries()) {
+ entry.verify();
+ }
+ } catch (Exception e) {
+ fail("Unexpected exception", e);
+ }
+ }
}
diff --git a/bundles/org.eclipse.osgi.tests/test_files/security/bundles/bundleWithNonAsciiCharsFilename.jar b/bundles/org.eclipse.osgi.tests/test_files/security/bundles/bundleWithNonAsciiCharsFilename.jar
new file mode 100644
index 000000000..cfa740973
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/test_files/security/bundles/bundleWithNonAsciiCharsFilename.jar
Binary files differ

Back to the top