diff options
author | Thomas Watson | 2014-05-13 14:49:35 +0000 |
---|---|---|
committer | Thomas Watson | 2014-05-13 14:56:32 +0000 |
commit | 3b6255987c37ad69a263385e9535109f0ee0ef41 (patch) | |
tree | 24b41a865edd1dbea81ee46b03f01398ca66557f | |
parent | 6b81e87c3e0e3b7458c86e86d68068a9bcec7573 (diff) | |
download | rt.equinox.framework-3b6255987c37ad69a263385e9535109f0ee0ef41.tar.gz rt.equinox.framework-3b6255987c37ad69a263385e9535109f0ee0ef41.tar.xz rt.equinox.framework-3b6255987c37ad69a263385e9535109f0ee0ef41.zip |
Bug 434711 - SignatureBlockProcessor can't handle special characters inI20140519-2000I20140518-2000I20140517-1500I20140516-2000I20140515-2000I20140515-1230I20140514-2000I20140513-2000
filenames
- Add a new testcase
Change-Id: If19844ffaa4fba60c8fe616e1f7e73694063cba6
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
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 Binary files differnew file mode 100644 index 000000000..cfa740973 --- /dev/null +++ b/bundles/org.eclipse.osgi.tests/test_files/security/bundles/bundleWithNonAsciiCharsFilename.jar |