Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5745

Invalid "location" information in Drill web server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.11.0
    • 1.12.0
    • Web Server

    Description

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

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

      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.

      Attachments

        Issue Links

          Activity

            People

              prasadns14 Prasad Nagaraj Subramanya
              Paul.Rogers Paul Rogers
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: