Bootstrap website.xml is not possible
-------------------------------------
Key: MAGNOLIA-3856
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3856
Project: Magnolia
Issue Type: Improvement
Security Level: Public
Affects Versions: 4.4.5
Reporter: Kimmo Björnsson
I would like to be able to bootstrap website.xml. It is not possible now
because of this sibling-test in BootstrapUtil.java
{code}
SiblingsHelper siblings = SiblingsHelper.of(node);
if(!siblings.isLast()){
nameOfNodeAfterTheImportedNode =
siblings.next().getName();
}
{code}
This throws
{code}
Caused by: javax.jcr.ItemNotFoundException: Root node doesn't have a parent
at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1712)
at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1705)
at
org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
at org.apache.jackrabbit.core.NodeImpl.getParent(NodeImpl.java:1705)
at info.magnolia.cms.core.DefaultContent.getParent(DefaultContent.java:372)
at info.magnolia.cms.util.SiblingsHelper.<init>(SiblingsHelper.java:101)
at info.magnolia.cms.util.SiblingsHelper.of(SiblingsHelper.java:57)
{code}
It looks like it should just work with the code afterwards.
--
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
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------