You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sarath Subramanian (JIRA)" <ji...@apache.org> on 2018/04/05 22:12:00 UTC
[jira] [Assigned] (ATLAS-2533) AtlasEntity is double classified
[ https://issues.apache.org/jira/browse/ATLAS-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sarath Subramanian reassigned ATLAS-2533:
-----------------------------------------
Assignee: Sarath Subramanian
> AtlasEntity is double classified
> --------------------------------
>
> Key: ATLAS-2533
> URL: https://issues.apache.org/jira/browse/ATLAS-2533
> Project: Atlas
> Issue Type: Bug
> Reporter: Graham Wallis
> Assignee: Sarath Subramanian
> Priority: Major
>
> When a list of classifications is added to an AtlasEntity, it gets added twice due to the following:
> public void addClassifications(List<AtlasClassification> classifications) {
> List<AtlasClassification> c = this.classifications;
> if (c == null) {
> c = new ArrayList<>(classifications);
> this.classifications = c;
> }
> c.addAll(classifications);
> }
> This last line should be protected by an else clause.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)