[MAGNOLIA-3856] Bootstrap website.xml is not possible Created: 10/Oct/11  Updated: 04/Nov/15  Resolved: 04/Nov/15

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.4.5
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Kimmo Björnsson Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

I would like to be able to bootstrap website.xml. It is not possible now because of this sibling-test in BootstrapUtil.java

                    SiblingsHelper siblings = SiblingsHelper.of(node);
                    if(!siblings.isLast()){
                        nameOfNodeAfterTheImportedNode = siblings.next().getName();
                    }

This throws

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)

It looks like it should just work with the code afterwards.



 Comments   
Comment by Michael Mühlebach [ 04/Nov/15 ]

Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes.
Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog for some time now with very little movement.
I'm going to close this to set expectations so the issue doesn't stay open for years with few updates. If the issue is still relevant please feel free to reopen it or create a new issue.

Generated at Mon Feb 12 03:50:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.