wrong extends configuration fails loading of dialogs or templates
-----------------------------------------------------------------
Key: MAGNOLIA-4533
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4533
Project: Magnolia
Issue Type: Bug
Security Level: Public
Affects Versions: 4.5.4
Reporter: Philipp Bärfuss
Priority: Critical
Fix For: 4.5.5
In case an absolute path is used in the extends field and if this node doesn't
exist then a runtime exception is thrown. This exception makes the reload()
method of the dialog or template manager fail and no item gets registered.
To fix the issue we have to rewrite ExtendingContentWrapper.isExists(..) as
follows:
{code}
private boolean isExists(String extendedNode, Content parent) throws
RepositoryException {
if (extendedNode.startsWith("/")){
return
getWrappedContent().getHierarchyManager().isExist(extendedNode);
}
else{
return parent.hasContent(extendedNode);
}
}
{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/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------