[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Haderka resolved MAGNOLIA-3058.
-----------------------------------
Resolution: Fixed
Changed the code to check for the UID first. Not checking the UUID format
explicitly, since apparently JCR spec doesn't define the format of UUID and
some implementations use different format (exo and notes for example).
> 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]>
----------------------------------------------------------------