[kune-commits] r1872 - openfireauth/src/main/java/cc/kune/core/server/auth/openfire

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Mon May 21 01:32:46 CEST 2012


Author: vjrj_
Date: 2012-05-21 01:32:46 +0200 (Mon, 21 May 2012)
New Revision: 1872

Modified:
   openfireauth/src/main/java/cc/kune/core/server/auth/openfire/KuneAuthProvider.java
Log:
NEW - # 273: Some http usage breaks SSL 
http://kune.ourproject.org/issues/ticket/273

Modified: openfireauth/src/main/java/cc/kune/core/server/auth/openfire/KuneAuthProvider.java
===================================================================
--- openfireauth/src/main/java/cc/kune/core/server/auth/openfire/KuneAuthProvider.java	2012-05-20 23:23:25 UTC (rev 1871)
+++ openfireauth/src/main/java/cc/kune/core/server/auth/openfire/KuneAuthProvider.java	2012-05-20 23:32:46 UTC (rev 1872)
@@ -36,10 +36,10 @@
       LOG.error("Error openning property files", e);
     }
     publicAddress = prop.getProperty(CoreSettings.HTTP_FRONTEND_PUBLIC_ADDRESS);
-
+    final boolean isSSL = Boolean.parseBoolean(prop.getProperty(CoreSettings.ENABLE_SSL));
     // http://googlewebtoolkit.blogspot.com.es/2010/07/gwtrpccommlayer-extending-gwt-rpc-to-do.html
     try {
-      final URL url = new URL("http://" + publicAddress + "/ws/UserService");
+      final URL url = new URL((isSSL ? "https" : "http") + "://" + publicAddress + "/ws/UserService");
       LOG.info("Service access URL: " + url);
       final GwtRpcService service = GwtRpcService.FACTORY.newInstance();
       userService = service.create(url, UserService.class);




More information about the kune-commits mailing list