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

ASF GitHub Bot commented on DRILL-6044:
---------------------------------------

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

    https://github.com/apache/drill/pull/1153#discussion_r173029148
  
    --- Diff: exec/java-exec/src/main/resources/rest/index.ftl ---
    @@ -272,6 +281,12 @@
            <#if model.shouldShowAdminInfo()>
               function shutdown(address,button) {
                   url = "http://"+address+":"+portNum+"/gracefulShutdown";;
    +              var ssl = $('#ssl').val();
    +              url = "http://";;
    +              if (ssl == "ssl_enabled") {
    +                    url = "https://";;
    --- End diff --
    
    Why not use 
[location.protocol](https://www.w3schools.com/jsref/prop_loc_protocol.asp) 
rather than getting the info from server side ?


> Shutdown button does not work from WebUI
> ----------------------------------------
>
>                 Key: DRILL-6044
>                 URL: https://issues.apache.org/jira/browse/DRILL-6044
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - HTTP
>    Affects Versions: 1.13.0
>            Reporter: Krystal
>            Assignee: Venkata Jyothsna Donapati
>            Priority: Critical
>             Fix For: 1.13.0
>
>         Attachments: Screen Shot 2017-12-19 at 10.51.16 AM.png
>
>
> git.commit.id.abbrev=eb0c403
> Nothing happens when click on the SHUTDOWN button from the WebUI.  The 
> browser's debugger showed that the request failed due to access control 
> checks (see attached screen shot).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to