Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3450

Visitor does not apply filter to root node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 4.3.8
    • core
    • None

    Description

      If I want to apply a visitor to all nodes of type X in my repository, I'll tend to do

        ContentUtil.visit(hm.getRoot(), myVisitor, new NodeTypeFilter("X");
      

      the visitor will also be applied to the root node, which is not the desired effect, obviously.
      This will happen no matter what the given node is, not just the repository's root.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD