Quantcast

[HtmlUnit] SVN: [14464] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/applets/AppletClassLoader.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14464] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/applets/AppletClassLoader.java

rbri
Revision: 14464
          http://sourceforge.net/p/htmlunit/code/14464
Author:   rbri
Date:     2017-05-19 15:25:43 +0000 (Fri, 19 May 2017)
Log Message:
-----------
inform users about potential problems

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/applets/AppletClassLoader.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/applets/AppletClassLoader.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/applets/AppletClassLoader.java 2017-05-19 14:10:08 UTC (rev 14463)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/applets/AppletClassLoader.java 2017-05-19 15:25:43 UTC (rev 14464)
@@ -46,6 +46,12 @@
     public AppletClassLoader(final Window window) {
         super(new URL[0]);
 
+        if (window.getWebWindow().getWebClient().getOptions().isUseInsecureSSL()) {
+            LOG.warn("AppletClassLoader: your WebClient accepts ssl connections without certificate checking."
+                    + "If you like to load applet archives from a SSL/HTTPS connection you have to configure"
+                    + "your jvm to accept untrusted certificate for SSL/HTTPS connections also.");
+        }
+
         try {
             loadOurNetscapeStuff("netscape.javascript.JSException");
             final Class<?> jsObjectClass = loadOurNetscapeStuff("netscape.javascript.JSObject");


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...