apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeepdalvi <...@git.apache.org>
Subject [GitHub] apex-core pull request #357: APEXCORE-488: Issues in SSL communication with ...
Date Thu, 14 Jul 2016 02:21:53 GMT
Github user pradeepdalvi commented on a diff in the pull request:

    https://github.com/apache/apex-core/pull/357#discussion_r70740041
  
    --- Diff: engine/src/main/java/com/datatorrent/stram/StreamingAppMasterService.java ---
    @@ -614,7 +615,16 @@ protected void serviceStart() throws Exception
           }
           WebApp webApp = WebApps.$for("stram", StramAppContext.class, appContext, "ws").with(config).start(new
StramWebApp(this.dnmgr));
           LOG.info("Started web service at port: " + webApp.port());
    -      this.appMasterTrackingUrl = NetUtils.getConnectAddress(webApp.getListenerAddress()).getHostName()
+ ":" + webApp.port();
    +      String host = NetUtils.getConnectAddress(webApp.getListenerAddress()).getHostName()
+ ":" + webApp.port();
    +
    +      // For backward compatibility, not adding scheme in TrackingURL for non-HTTPS
    +      // TODO: Remove the check in next major release and add scheme always
    +      if (ConfigUtils.isSSLEnabled(config)) {
    +        String scheme = ConfigUtils.getSchemePrefix(config);
    --- End diff --
    
    Or something like this:
    
    `this.appMasterTrackingUrl = (ConfigUtils.isSSLEnabled(config) ? ConfigUtils.getSchemePrefix(config)
: "") + NetUtils.getConnectAddress(webApp.getListenerAddress()).getHostName() + ":" + webApp.port();`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message