Commit 6ed73d88 by sidmishra Committed by Sarath Subramanian

ATLAS-4081: Throw the unauthrized access exception during term update in case…

ATLAS-4081: Throw the unauthrized access exception during term update in case user has no permission Signed-off-by: 's avatarSarath Subramanian <sarath@apache.org>
parent af55c7f8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment