Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2533

AtlasEntity is double classified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      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.

      Attachments

        1. ATLAS-2533.1.patch
          1 kB
          Sarath Subramanian

        Activity

          People

            sarath Sarath Subramanian
            grahamwallis Graham Wallis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: