Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-695

yang.model.util.EffectiveAugmentationSchema is mutable

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 6979

    Description

      This class has realChildSchemas field, which is initialized to the collection passed by the caller, some of whom use a HashSet.

      This means a mutable collection is leaked through getChildNodes(), allowing modification.

      This may be intentional or it may be a bug – analyze callers and make sure we either copy the Set or wrap it in Unmodifiable collection. Also address the FIXME at the top of the class, as the subclasses do not seem to exist.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            filip.gregor@pantheon.tech Filip Gregor
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: