atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject incubator-atlas git commit: ATLAS-1878 - Fix for NPE when a request without any query path lands on atlas
Date Sun, 18 Jun 2017 14:52:10 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/0.8-incubating e183fe832 -> fca6855ec


ATLAS-1878 - Fix for NPE when a request without any query path lands on atlas


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

Branch: refs/heads/0.8-incubating
Commit: fca6855ec36ef5c0a9fcfebff237dbc7c10c905b
Parents: e183fe8
Author: nixonrodrigues <nixon@apache.org>
Authored: Fri Jun 16 19:29:07 2017 +0530
Committer: nixonrodrigues <nixon@apache.org>
Committed: Sun Jun 18 20:17:59 2017 +0530

----------------------------------------------------------------------
 .../apache/atlas/authorize/simple/AtlasAuthorizationUtils.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/fca6855e/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasAuthorizationUtils.java
----------------------------------------------------------------------
diff --git a/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasAuthorizationUtils.java
b/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasAuthorizationUtils.java
index e907bf5..93d988e 100644
--- a/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasAuthorizationUtils.java
+++ b/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasAuthorizationUtils.java
@@ -44,6 +44,11 @@ public class AtlasAuthorizationUtils {
         if (isDebugEnabled) {
             LOG.debug("==> getApi({})", contextPath);
         }
+
+        if(contextPath == null){
+            contextPath = "";
+        }
+
         if (contextPath.startsWith(BASE_URL)) {
             contextPath = contextPath.substring(BASE_URL.length());
         } else {


Mime
View raw message