You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2017/08/28 22:09:00 UTC

[jira] [Created] (DRILL-5745) Invalid "location" information in Drill web server

Paul Rogers created DRILL-5745:
----------------------------------

             Summary: Invalid "location" information in Drill web server
                 Key: DRILL-5745
                 URL: https://issues.apache.org/jira/browse/DRILL-5745
             Project: Apache Drill
          Issue Type: Bug
          Components: Web Server
    Affects Versions: 1.11.0
            Reporter: Paul Rogers
            Priority: Minor


The file {{ProfileResources.java}} has the following incorrect code line:

{code}
      this.location = "http://localhost:8047/profile/" + queryId + ".json";
{code}

This code makes three errors.

1. The "http" prefix ignores the fact that the Drillbit can have SSL enabled for the web server.
2. In a browser, "localhost" refers to the the machine running the browser. This is valid only if the browser runs on the same machine as the Drillbit, which is not, in general, true.
3. The port number is hardcoded to 8047, but it can be customized in the config file.

Therefore, most of the time, the link won't work on a production server.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)