Blame SOURCES/oracleForms.patch

4e0e32
# HG changeset patch
4e0e32
# User Jiri Vanek <jvanek@redhat.com>
4e0e32
# Date 1526310938 -7200
4e0e32
#      Mon May 14 17:15:38 2018 +0200
4e0e32
# Node ID bcbef8d7bbd6369b3c8d545469e1c56e47075d9d
4e0e32
# Parent  4abd0f0897738289a19ef9238f02c6e9dafee6a4
4e0e32
AppletEnvironment.java: getDocumentBase no returns codeBase as fallback when  documentBase is null.
4e0e32
Oracle Applications R12, Oracle Forms Java Webstart application is requesting getDocumentBase where it shouldn't, however they refuse to modify their code and add ITW to supported platforms
4e0e32
4e0e32
diff -r 4abd0f089773 -r bcbef8d7bbd6 ChangeLog
4e0e32
--- a/ChangeLog	Fri Mar 02 10:41:29 2018 +0100
4e0e32
+++ b/ChangeLog	Mon May 14 17:15:38 2018 +0200
4e0e32
@@ -1,3 +1,9 @@
4e0e32
+2018-05-14  Jiri Vanek <jvanek@redhat.com>
4e0e32
+
4e0e32
+	* netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java: getDocumentBase now returns codeBase as fallback when 
4e0e32
+	documentBase is null. Oracle Applications R12, Oracle Forms Java Webstart application is requesting getDocumentBase
4e0e32
+	where it shouldn't, however they refuse to modify their code and add ITW to supported platforms
4e0e32
+
4e0e32
 2018-02-06  Jiri Vanek <jvanek@redhat.com>
4e0e32
 
4e0e32
 	Added test for javafx-desc
4e0e32
diff -r 4abd0f089773 -r bcbef8d7bbd6 netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
4e0e32
--- a/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java	Fri Mar 02 10:41:29 2018 +0100
4e0e32
+++ b/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java	Mon May 14 17:15:38 2018 +0200
4e0e32
@@ -375,8 +375,12 @@
4e0e32
     @Override
4e0e32
     public URL getDocumentBase() {
4e0e32
         checkDestroyed();
4e0e32
-
4e0e32
-        return file.getApplet().getDocumentBase();
4e0e32
+        URL db = file.getApplet().getDocumentBase();
4e0e32
+        if (db == null) {
4e0e32
+            return getCodeBase();
4e0e32
+        } else {
4e0e32
+            return db;
4e0e32
+        }
4e0e32
     }
4e0e32
 
4e0e32
     // FIXME: Sun's applet code forces all parameters to lower case.