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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new e6a8aec  ATLAS-4081: Throw the unauthrized access exception during 
term update in case user has no permission
e6a8aec is described below

commit e6a8aec5866647c1c14e68abacdfc6b6061b861d
Author: sidmishra <[email protected]>
AuthorDate: Tue Dec 15 09:37:13 2020 -0800

    ATLAS-4081: Throw the unauthrized access exception during term update in 
case user has no permission
    
    Signed-off-by: Sarath Subramanian <[email protected]>
    (cherry picked from commit 6ed73d88374aacbf3bd2ed5ddf30717944db347e)
---
 .../main/java/org/apache/atlas/glossary/GlossaryService.java   | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 
a/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java 
b/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java
index d630f66..82243e2 100644
--- a/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java
+++ b/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java
@@ -409,14 +409,10 @@ public class GlossaryService {
 
         AtlasGlossaryTerm storeObject = dataAccess.load(atlasGlossaryTerm);
         if (!storeObject.equals(atlasGlossaryTerm)) {
-            try {
-                atlasGlossaryTerm.setGuid(storeObject.getGuid());
-                
atlasGlossaryTerm.setQualifiedName(storeObject.getQualifiedName());
+            atlasGlossaryTerm.setGuid(storeObject.getGuid());
+            atlasGlossaryTerm.setQualifiedName(storeObject.getQualifiedName());
 
-                storeObject = dataAccess.save(atlasGlossaryTerm);
-            } catch (AtlasBaseException e) {
-                LOG.debug("Glossary term had no immediate attr updates. 
Exception: {}", e.getMessage());
-            }
+            storeObject = dataAccess.save(atlasGlossaryTerm);
 
             glossaryTermUtils.processTermRelations(storeObject, 
atlasGlossaryTerm, GlossaryUtils.RelationshipOperation.UPDATE);
 

Reply via email to