Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-3966

Tez UI config couldn't be executed in browser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.1, 0.9.3
    • UI
    • None

    Description

      Current name convention applied to the ui configuration file, produce the following error in web browser - mime type check fails (which based on file extesion) and if  header `X-Content-Type-Options: nosniff` enabled config wouldn't be executed and used. As a result we may have problems, for instance links based on variable `yarnProtocol`.

      More about header - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

      Possible solution - rename file `config.env` to `config.js` https://github.com/apache/tez/pull/26 https://github.com/rlukin/tez/commit/8db8c04faee04dc161c90c3961233ec5aa40518e

       

      Steps to reproduce:

      • Enable aforementioned header on web server
      • Try to load tez ui

      Attachments

        1. Selection_043.png
          386 kB
          Roman Lukin
        2. Selection_044.png
          267 kB
          Roman Lukin
        3. simple-cors-http-server.py
          0.6 kB
          Jonathan Turner Eagles

        Activity

          People

            Unassigned Unassigned
            rlukin Roman Lukin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m