You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2020/09/21 05:37:00 UTC

[atlas] 01/02: ATLAS-3947 : Skip authorization for read of _ALL_ENTITY_TYPES and _ALL_CLASSIFICATION_TYPES types

This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit b1bbaee045c6d629351b6902e13bb36ffa493e6c
Author: nixonrodrigues <ni...@apache.org>
AuthorDate: Thu Sep 17 15:49:50 2020 +0530

    ATLAS-3947 : Skip authorization for read of _ALL_ENTITY_TYPES and _ALL_CLASSIFICATION_TYPES types
    
    Change-Id: Iecd8ab427510cb37aaff99e420c25a579631dd4d
    (cherry picked from commit 74229d87043bc55a4dd83cad37db59031d624af5)
---
 .../org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
index 458ec49..9aa8fbc 100644
--- a/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
+++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
@@ -270,6 +270,7 @@ public abstract class AtlasTypeDefGraphStore implements AtlasTypeDefStore {
             if (ret == null) {
                 throw new AtlasBaseException(AtlasErrorCode.TYPE_NAME_NOT_FOUND, name);
             }
+            return ret;
         }
 
         AtlasAuthorizationUtils.verifyAccess(new AtlasTypeAccessRequest(AtlasPrivilege.TYPE_READ, ret), "read type ", name);
@@ -322,6 +323,7 @@ public abstract class AtlasTypeDefGraphStore implements AtlasTypeDefStore {
             if (ret == null) {
                 throw new AtlasBaseException(AtlasErrorCode.TYPE_NAME_NOT_FOUND, name);
             }
+            return ret;
         }
 
         AtlasAuthorizationUtils.verifyAccess(new AtlasTypeAccessRequest(AtlasPrivilege.TYPE_READ, ret), "read type ", name);