This is an automated email from the ASF dual-hosted git repository.
sarath pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 6ed73d8 ATLAS-4081: Throw the unauthrized access exception during
term update in case user has no permission
6ed73d8 is described below
commit 6ed73d88374aacbf3bd2ed5ddf30717944db347e
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]>
---
.../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);