Repository: atlas
Updated Branches:
  refs/heads/master d74f0ce9d -> 5e496e5e1


ATLAS-2456: Implement tag propagation using relationships - #2


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

Branch: refs/heads/master
Commit: 5e496e5e1daab6e25c0208dbcd17f784cd54e63a
Parents: d74f0ce
Author: Madhan Neethiraj <mad...@apache.org>
Authored: Wed Feb 21 20:55:39 2018 -0800
Committer: Madhan Neethiraj <mad...@apache.org>
Committed: Wed Feb 21 20:55:39 2018 -0800

----------------------------------------------------------------------
 .../apache/atlas/repository/store/graph/v1/EntityGraphMapper.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/5e496e5e/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
----------------------------------------------------------------------
diff --git 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
index 80c64b1..46b487b 100644
--- 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
+++ 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
@@ -1463,7 +1463,7 @@ public class EntityGraphMapper {
                 String classificationName       = classification.getTypeName();
                 String classificationEntityGuid = 
classification.getEntityGuid();
 
-                if (StringUtils.isNotEmpty(classificationEntityGuid) && 
StringUtils.equalsIgnoreCase(guid, classificationEntityGuid)) {
+                if (StringUtils.isNotEmpty(classificationEntityGuid) && 
!StringUtils.equalsIgnoreCase(guid, classificationEntityGuid)) {
                     throw new 
AtlasBaseException(AtlasErrorCode.CLASSIFICATION_UPDATE_FROM_PROPAGATED_ENTITY, 
classificationName);
                 }
 

Reply via email to