Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1079

Regression: proxy for Atlas fails with j_spring_security_check during login

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • Server
    • None

    Description

      Reported by ssainath in ATLAS-2203:

      1. Enabled knox proxy for Atlas.
      2. On accessing https://knox_gateway:8443/gateway/ui/atlas/login.jsp , 404 is thrown with the following :
        POST
        404 Not Found
        https://knox_gateway:8443/gateway/j_spring_security_check
        and
        GET
        404 Not Found
        https://knox_gateway:8443/favicon.ico
        which should ideally go to
        https://knox_gateway:8443/gateway/ui/atlas/j_spring_security_check

      nixonrodrigues investigated this issue and found that a recent commit in Atlas, which changed Jetty version (ATLAS-2186), caused this regression. Here are the details from his investigation:

      This regression is caused because the content type of javascript file is changed from application/javascript to application/x-javascript due to recent jetty version change in ATLAS-2186.

      HTTP/1.1 200 OK
      Date: Thu, 12 Oct 2017 13:05:08 GMT
      Content-Type: application/x-javascript
      Last-Modified: Wed, 11 Oct 2017 15:29:36 GMT
      Accept-Ranges: bytes
      Server: Jetty(8.1.19.v20160209)
      Content-Encoding: gzip
      Vary: Accept-Encoding, User-Agent
      Content-Length: 1018
      

      lmccay suggested the fix, to update rewrite.xml to recognize content-type */x-javascript as well.

      Attachments

        1. KNOX-1079.patch
          1 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: