[ 
https://issues.apache.org/jira/browse/APEXCORE-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371886#comment-15371886
 ] 

ASF GitHub Bot commented on APEXCORE-488:
-----------------------------------------

Github user sandeshh commented on a diff in the pull request:

    https://github.com/apache/apex-core/pull/357#discussion_r70355340
  
    --- Diff: engine/src/main/java/com/datatorrent/stram/client/StramAgent.java 
---
    @@ -204,7 +204,14 @@ private UriBuilder 
getStramWebURIBuilder(WebServicesClient webServicesClient, St
         if (info != null) {
           //ws = wsClient.resource("http://"; + 
info.appMasterTrackingUrl).path(WebServices.PATH).path(info.version).path("stram");
           // the filter should convert to the right version
    -      ub = UriBuilder.fromUri("http://"; + 
info.appMasterTrackingUrl).path(WebServices.PATH).path(WebServices.VERSION).path("stram");
    +      String url;
    +      if (!info.appMasterTrackingUrl.startsWith("http://";)
    +          && !info.appMasterTrackingUrl.startsWith("https://";)) {
    +        url = "http://"; + info.appMasterTrackingUrl;
    --- End diff --
    
    It should be logged, saying falling back to http


> Issues in SSL communication with StrAM
> --------------------------------------
>
>                 Key: APEXCORE-488
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-488
>             Project: Apache Apex Core
>          Issue Type: Bug
>            Reporter: Pradeep A. Dalvi
>            Assignee: Pradeep A. Dalvi
>
> Couple of issues in SSL communication with StrAM to track application progress
>  - trackingURL without protocol scheme, makes YARN to pick up default HTTP. 
> This happens even if the yarn.http.policy is set to HTTPS_ONLY.
>  - StramAgent assumes always HTTP communication



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to