Bug 434711 - SignatureBlockProcessor can't handle special characters in
filenames

  - Add a new testcase

Change-Id: If19844ffaa4fba60c8fe616e1f7e73694063cba6
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
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 608d041..66d81b7 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 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 0000000..cfa7409
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/test_files/security/bundles/bundleWithNonAsciiCharsFilename.jar
Binary files differ