Description
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.
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.