[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26369#action_26369
]
Jan Haderka commented on MAGNOLIA-3058:
---------------------------------------
{{PathNotFoundException}} was never thrown by this method before changes to
content API. There is other code (like in STK) that doesn't expect the
exception. The fix restored the original behavior of the method.
> AbstractNodeData#getReferencedContent(..) throws PathNotFoundException
> ----------------------------------------------------------------------
>
> Key: MAGNOLIA-3058
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3058
> Project: Magnolia
> Issue Type: Bug
> Components: core
> Affects Versions: 4.3 M1
> Reporter: Federico Grilli
> Assignee: Jan Haderka
> Priority: Critical
> Fix For: 4.3
>
>
> 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
> {code}
> // is this relative path?
> if (!pathOrUUID.startsWith("/")) {
> refNode = node.getContent(pathOrUUID);
> }
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------