Repository: incubator-ranger
Updated Branches:
  refs/heads/master ee5a6ec1a -> ccbc468cd


RANGER-1023 : fixed the redirect issue on initial home page from browser

Signed-off-by: Velmurugan Periasamy <[email protected]>


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

Branch: refs/heads/master
Commit: ccbc468cd1a568b18a2331b98986a074683a1b1b
Parents: ee5a6ec
Author: sneethiraj <[email protected]>
Authored: Fri Jun 10 15:33:16 2016 -0400
Committer: Velmurugan Periasamy <[email protected]>
Committed: Fri Jun 17 17:06:42 2016 -0400

----------------------------------------------------------------------
 .../ranger/security/web/filter/RangerKrbFilter.java | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/ccbc468c/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKrbFilter.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKrbFilter.java
 
b/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKrbFilter.java
index 120f098..c7694a1 100644
--- 
a/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKrbFilter.java
+++ 
b/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKrbFilter.java
@@ -498,21 +498,7 @@ public class RangerKrbFilter implements Filter {
           errCode = HttpServletResponse.SC_FORBIDDEN;
         }
         if (authenticationEx == null) {
-               boolean chk = true;
-            Collection<String> headerNames = httpResponse.getHeaderNames();
-            for(String headerName : headerNames){
-                String value = httpResponse.getHeader(headerName);
-                if(headerName.equalsIgnoreCase("Set-Cookie") && 
value.startsWith("RANGERADMINSESSIONID")){
-                    chk = false;
-                    break;
-                }
-            }
-            String authHeader = httpRequest.getHeader("Authorization");
-            if(authHeader == null && chk){
-               filterChain.doFilter(request, response);
-            }else if(authHeader != null && authHeader.startsWith("Basic")){
-                filterChain.doFilter(request, response);
-            }
+            filterChain.doFilter(request, response);
         } else {
           httpResponse.sendError(errCode, authenticationEx.getMessage());
         }

Reply via email to