Issue Type: Bug Bug
Affects Versions: 1.2.6
Assignee: Unassigned
Components: Migration Task
Created: 17/Oct/13 5:11 PM
Description:

NodeUtil.renameNode() was rewritten in this commit and no longer works if a path is passed as the newName parameter. The MoveMigrationTask calls MigrationUtil.renameAndMergeNodes(pagesNode, "templates/pages", false, true);, which passes 'templates/pages' to NodeUtil.renameNode(), resulting in the following:

2013-10-15 16:08:24,715 ERROR info.magnolia.module.InstallContextImpl : > Unable to move Templates and Paragraphs for the following module:gato
javax.jcr.RepositoryException: invalid name: templates/pages
at org.apache.jackrabbit.core.NodeImpl.orderBefore(NodeImpl.java:1815)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.orderBefore(DelegateNodeWrapper.java:332)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.orderBefore(DelegateNodeWrapper.java:332)
at info.magnolia.jcr.util.NodeUtil.renameNode(NodeUtil.java:523)
at info.magnolia.templatingkit.migration.util.MigrationUtil.renameAndMergeNodes(MigrationUtil.java:197)
at info.magnolia.templatingkit.migration.util.MigrationUtil.renameAndMergeNodes(MigrationUtil.java:208)
at info.magnolia.migration.task.general.MoveMigrationTask.executeTask(MoveMigrationTask.java:99)

Project: Magnolia Migration
Priority: Neutral Neutral
Reporter: Charles Jones
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]>
----------------------------------------------------------------

Reply via email to