changeset 274:27f08d58854f

Merge
author Deepak Bhole <dbhole@redhat.com>
date Tue, 09 Aug 2011 17:34:35 -0400
parents 9b7eca03a9ea (current diff) a06bae0764b6 (diff)
children 68756a4f8cc0
files ChangeLog NEWS
diffstat 3 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Aug 09 17:29:45 2011 -0400
+++ b/ChangeLog	Tue Aug 09 17:34:35 2011 -0400
@@ -6,6 +6,14 @@
 	(inKeyStores): Use Certificate.verify to correctly verify a certificate
 	against a public key in the store.
 
+2011-08-09  Saad Mohammad  <smohammad@redhat.com>
+
+	PR765: JNLP file with all resource jars marked as 'lazy' fails to validate 
+	signature and stops the launch of application
+	* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java:
+	(initializeResources): Initializes the first jar file if all resources
+	are marked as lazy jars
+
 2011-08-03  Saad Mohammad  <smohammad@redhat.com>
 
 	* netx/net/sourceforge/jnlp/JNLPMatcher.java:
--- a/NEWS	Tue Aug 09 17:29:45 2011 -0400
+++ b/NEWS	Tue Aug 09 17:34:35 2011 -0400
@@ -12,6 +12,8 @@
 * Security updates:
 	- RH718164, CVE-2011-2513: Home directory path disclosure to untrusted applications
 	- RH718170, CVE-2011-2514: Java Web Start security warning dialog manipulation
+* NetX
+  - PR765: JNLP file with all resource jars marked as 'lazy' fails to validate signature and stops the launch of application
 * Plugin
   - PR749: sun.applet.PluginStreamHandler#handleMessage(String) really slow
 Common
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Tue Aug 09 17:29:45 2011 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Tue Aug 09 17:34:35 2011 -0400
@@ -428,6 +428,10 @@
                                 jars[i].isCacheable() ? JNLPRuntime.getDefaultUpdatePolicy() : UpdatePolicy.FORCE
                                );
         }
+        
+        //If there are no eager jars, initialize the first jar
+        if(initialJars.size() == 0)
+            initialJars.add(jars[0]);
 
         if (strict)
             fillInPartJars(initialJars); // add in each initial part's lazy jars