atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apoorvn...@apache.org
Subject atlas git commit: ATLAS-2009 : Fix in AuthorizationFilter, added return for unauthorized request.
Date Tue, 01 Aug 2017 22:27:06 GMT
Repository: atlas
Updated Branches:
  refs/heads/0.8-incubating 26ae5de32 -> 1b2471e34


ATLAS-2009 : Fix in AuthorizationFilter, added return for unauthorized request.

Change-Id: I5b009eebec80f32666b8042bbb59a1089872f3d9

Signed-off-by: apoorvnaik <apoorvnaik@apache.org>

(cherry picked from commit eb82ef9)


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/1b2471e3
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/1b2471e3
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/1b2471e3

Branch: refs/heads/0.8-incubating
Commit: 1b2471e344df18c0dea99fe8c443074935390da4
Parents: 26ae5de
Author: nixonrodrigues <nixon@apache.org>
Authored: Tue Aug 1 07:50:32 2017 -0700
Committer: apoorvnaik <apoorvnaik@apache.org>
Committed: Tue Aug 1 15:27:00 2017 -0700

----------------------------------------------------------------------
 .../org/apache/atlas/web/filters/AtlasAuthorizationFilter.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/1b2471e3/webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthorizationFilter.java
----------------------------------------------------------------------
diff --git a/webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthorizationFilter.java
b/webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthorizationFilter.java
index 862e34f..8a29bb3 100644
--- a/webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthorizationFilter.java
+++ b/webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthorizationFilter.java
@@ -167,8 +167,8 @@ public class AtlasAuthorizationFilter extends GenericFilterBean {
                 if (isDebugEnabled) {
                     LOG.debug("You are not authorized for {} on {} : {}\nReturning 403 since
the access is blocked update!!!!", atlasRequest.getAction().name(), atlasResourceTypes, atlasRequest.getResource());
                 }
+                return;
             }
-
         } else {
             if (isDebugEnabled) {
                 LOG.debug("Ignoring request {}", pathInfo);
@@ -177,4 +177,4 @@ public class AtlasAuthorizationFilter extends GenericFilterBean {
         }
     }
 
-}
\ No newline at end of file
+}


Mime
View raw message