Repository: incubator-ranger
Updated Branches:
  refs/heads/master 2cf47b9fe -> 246d53690


RANGER-1127. Ranger HA: Handle scenarios for request with X-Forwarded-Server

Signed-off-by: Gautam Borad <gau...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/246d5369
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/246d5369
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/246d5369

Branch: refs/heads/master
Commit: 246d53690eec7db1ac45bc3d598ae6c326e7a8f5
Parents: 2cf47b9
Author: Ankita Sinha <ankita.si...@freestoneinfotech.com>
Authored: Wed Jul 27 13:48:19 2016 +0530
Committer: Gautam Borad <gau...@apache.org>
Committed: Wed Jul 27 14:07:23 2016 +0530

----------------------------------------------------------------------
 .../web/authentication/RangerAuthenticationEntryPoint.java        | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/246d5369/security-admin/src/main/java/org/apache/ranger/security/web/authentication/RangerAuthenticationEntryPoint.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/security/web/authentication/RangerAuthenticationEntryPoint.java
 
b/security-admin/src/main/java/org/apache/ranger/security/web/authentication/RangerAuthenticationEntryPoint.java
index 2c06f58..6496698 100644
--- 
a/security-admin/src/main/java/org/apache/ranger/security/web/authentication/RangerAuthenticationEntryPoint.java
+++ 
b/security-admin/src/main/java/org/apache/ranger/security/web/authentication/RangerAuthenticationEntryPoint.java
@@ -133,9 +133,6 @@ public class RangerAuthenticationEntryPoint extends
                                        
request.getSession().setAttribute("locallogin","true");
                                        
request.getServletContext().setAttribute(request.getSession().getId(), 
"locallogin");
                        }
-                       if(request.getHeader("x-forwarded-server") != null){
-                               super.setUseForward(true);
-                       }
                        super.commence(request, response, authException);
                }
        }

Reply via email to