[MAGNOLIA-3985] primaryItemType set on mgnl:resource (in custom_nodetypes.xml) prevents application from being able to start up repo Created: 29/Feb/12 Updated: 16/Jul/12 Resolved: 29/Feb/12 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 4.5 |
| Fix Version/s: | 4.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Daniel Lipp | Assignee: | Daniel Lipp |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| 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 |
|
2012-02-29 09:24:11,872 ERROR org.apache.jackrabbit.core.RepositoryImpl : failed to start Repository: internal error: invalid custom node type definition stored in /nodetypes/custom_nodetypes.xml resource] primaryItemName is already specified by a supertype and must therefore not be overridden. |
| Comments |
| Comment by Daniel Lipp [ 29/Feb/12 ] |
|
JCR 2.0 does no longer accept setting the primaryItemType for nodeType "mgnl:resource" - this is obsolete anyway, as it'll be inherited from the super type "nt:resource" |
| Comment by Daniel Lipp [ 29/Feb/12 ] |
|
Jackrabbit 2.0 does no longer support it - see -> simply set primaryItemType="" for mgnl:resource |
| Comment by Edgar Vonk [ 16/Jul/12 ] |
|
We ran into this issue while upgrading our Magnolia implementation from 4.4.6 to 4.5.3. I think the information in this JIRA issue and in the upgrade documentation is wrong? The solution in our case anyway was not to set the primaryItemType to an empty string (this did not solve anything) but instead to remove the primaryItemName for nodeType 'mgnl:resource'. If I understand it correctly this is also what is said in If what I say is correct could you update the upgrade documentation accordingly? Cheers. |