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

AbstractNodeData#getReferencedContent(..) throws PathNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.3
    • 4.3
    • core
    • None

      While working with the demo-project I noticed that all the internal links show the message "Target page of link does not exist".
      The logs show this kind of error for each unresolved link.

      2010-02-03 12:20:25,702 ERROR info.magnolia.module.templatingkit.util.STKUtil : Can't resolve reference [/demo-project/footer/02/linkList/03/link] with uuid [f312fc16-8f66-451c-bdf0-a72913b74c2d]
      Digging a bit in code I've seen that the following chunk of code in AbstractNodeData#getReferencedContent(..) throws a PathNotFoundException though the path actually exists

      // is this relative path?
                  if (!pathOrUUID.startsWith("/")) {
                      refNode = node.getContent(pathOrUUID);
                  }
      

        Acceptance criteria

              had Jan Haderka
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD