Madhan Neethiraj created KNOX-1079:
--------------------------------------

             Summary: Regression: proxy for Atlas fails with 
j_spring_security_check during login
                 Key: KNOX-1079
                 URL: https://issues.apache.org/jira/browse/KNOX-1079
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 0.13.0
            Reporter: Madhan Neethiraj
            Priority: Critical


Reported by [~ssainath] in ATLAS-2203:
# Enabled knox proxy for Atlas.
# 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.

{noformat}
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
{noformat}

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



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

Reply via email to