[MAGNOLIA-354] website bootstrap is not working Created: 28/Apr/05  Updated: 17/Mar/09  Resolved: 28/Apr/05

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1 Final

Type: Bug Priority: Major
Reporter: Philipp Bärfuss Assignee: Fabrizio Giustina
Resolution: Fixed 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

during loading of the website.features.xml you get an error.

the website repository in the tree view seams to be empty.

ERROR MSG:

-----------------------------------------------------------------

Trying to initialize repositories from [/Users/philipp/CMS/magnolia2.1_dev/author/webapps/magnolia/WEB-INF/bootstrap]

-----------------------------------------------------------------

INFO info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:233) 28.04.2005 10:38:35 Trying to initialize repositories from [/Users/philipp/CMS/magnolia2.1_dev/author/webapps/magnolia/WEB-INF/bootstrap]
INFO info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:257) 28.04.2005 10:38:35 Trying to import content from 1 files...
INFO info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:275) 28.04.2005 10:38:35 Importing content from website.features.xml
INFO info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:298) 28.04.2005 10:38:36 Saving changes to [website]
WARN org.apache.jackrabbit.core.ItemImpl ItemImpl.java(checkReferences:685) 28.04.2005 10:38:36 /features/jcr:predecessors: target node of REFERENCE property does not exist
ERROR info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:304) 28.04.2005 10:38:36 Unable to save changes to the [website] repository due to a javax.jcr.ReferentialIntegrityException Exception: /features/jcr:predecessors: target node of REFERENCE property does not exist. Will try to continue.
javax.jcr.ReferentialIntegrityException: /features/jcr:predecessors: target node of REFERENCE property does not exist
at org.apache.jackrabbit.core.ItemImpl.checkReferences(ItemImpl.java:686)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1232)
at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:752)
at info.magnolia.cms.beans.config.ConfigLoader.bootstrapRepositories(ConfigLoader.java:301)
at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:121)
at info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:81)
at info.magnolia.cms.servlets.Initializer.init(Initializer.java:54)



 Comments   
Comment by Fabrizio Giustina [ 28/Apr/05 ]

the default content for the website has been fixed by stripping version history from the xml.
We will need to filter out the exported xml to do this automatically, I will open another issue for this.

At the moment, if you need to export content from website you can fix it by running these regexp (replace with "") on the generated file:

(\<sv:\property sv\:name\=\"jcr\:predecessors\" sv\:type\=\"Reference\"\>\<sv\:value\>)([0123456789abcdef\-])+(\<\/sv\:value\>\<\/sv\:property\>)

(\<sv:\property sv\:name\=\"jcr\:versionHistory\" sv\:type\=\"Reference\"\>\<sv\:value\>)([0123456789abcdef\-])+(\<\/sv\:value\>\<\/sv\:property\>)

(\<sv:\property sv\:name\=\"jcr\:baseVersion\" sv\:type\=\"Reference\"\>\<sv\:value\>)([0123456789abcdef\-])+(\<\/sv\:value\>\<\/sv\:property\>)

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