changeset 254:db6914cf15be

PR768: Signed applets/Web Start apps don't work with OpenJDK7 and up
author Deepak Bhole <dbhole@redhat.com>
date Wed, 03 Aug 2011 14:11:11 -0400
parents f9c1a27fada9
children 25dc7d8cb757
files ChangeLog NEWS netx/net/sourceforge/jnlp/tools/JarSigner.java
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jul 21 15:13:34 2011 -0400
+++ b/ChangeLog	Wed Aug 03 14:11:11 2011 -0400
@@ -1,3 +1,9 @@
+2011-08-03  Deepak Bhole <dbhole@redhat.com>
+
+	PR768: Signed applets/Web Start apps don't work with OpenJDK7 and up
+	* netx/net/sourceforge/jnlp/tools/JarSigner.java (verifyJar): Put entry in
+	cert hashtable only if the entry is expected to be signed.
+
 2011-07-21  Deepak Bhole <dbhole@redhat.com>
 
 	PR749: sun.applet.PluginStreamHandler#handleMessage(String) really slow
--- a/NEWS	Thu Jul 21 15:13:34 2011 -0400
+++ b/NEWS	Wed Aug 03 14:11:11 2011 -0400
@@ -11,6 +11,8 @@
 New in release 1.1.2 (2011-XX-XX):
 * Plugin
   - PR749: sun.applet.PluginStreamHandler#handleMessage(String) really slow
+Common
+  - PR768: Signed applets/Web Start apps don't work with OpenJDK7 and up
 
 New in release 1.1.1 (2011-07-20):
 * Security updates:
--- a/netx/net/sourceforge/jnlp/tools/JarSigner.java	Thu Jul 21 15:13:34 2011 -0400
+++ b/netx/net/sourceforge/jnlp/tools/JarSigner.java	Wed Aug 03 14:11:11 2011 -0400
@@ -284,7 +284,7 @@
                     if (shouldHaveSignature)
                         totalSignableEntries++;
 
-                    if (isSigned) {
+                    if (shouldHaveSignature && isSigned) {
                         for (int i = 0; i < signers.length; i++) {
                             CertPath certPath = signers[i].getSignerCertPath();
                             if (!certs.containsKey(certPath))