![]() |
|
|
|
|
Issue Type:
|
Task
|
|
Affects Versions:
|
1.2 |
|
Assignee:
|
Unassigned |
|
Components:
|
Migration Task |
|
Created:
|
07/Feb/13 3:27 PM
|
|
Description:
|
After migrating Website Content to 4.5.7, I've to change the old paragraphs jcr:primaryTpye from "mgnl.contentNode" to "mgnl:component"
<sv:node sv:name="0"> <- this is a paragraph
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:contentNode</sv:value>
</sv:property>
So I wrote a little script which finds me all paragraphs. When trying
node.setProperty("jcr:primaryType", "mgnl:component");
it always results in a "javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected."
same with
MigrationUtil.updatePropertyIfExist(node, propertyName, oldValue, newValue)
For a proper migration it is necessary to update those nodes types.
How to perform this action with the Magnolia Migration Tool.
|
|
Environment:
|
Magnolia EE 4.5.7
|
|
Project:
|
Magnolia Migration
|
|
Labels:
|
Paragraph
migration
itemtype
|
|
Priority:
|
Major
|
|
Reporter:
|
Tom Wespi
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]>
----------------------------------------------------------------