[MGNLBACKUP-65] XMLFileSplitter is broken with Magnolia 4.5 - it doesn't honor mgnl:page nodetype Created: 04/Mar/13  Updated: 29/Mar/22  Resolved: 29/Oct/13

Status: Closed
Project: Backup
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: 1.2.3, 1.5

Type: Bug Priority: Major
Reporter: Vivian Steller Assignee: Peili Liang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 4.5.7


Issue Links:
relation
is related to DOCU-481 Add documentation for XMLFileSplitter... Closed
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
Release notes required:
Yes
Date of First Response:
Epic Link: Support
Sprint: 4.5.13
Team: Nucleus

 Description   

Previously (in Magnolia <4.5) XMLFileSplitter could be used to split large bootstrap files. It uses a hard coded reference to the mgnl:content nodetype to split the file into chunks.
However, in Magnolia 4.5 pages use the new nodetype mgnl:page, which is why XMLFileSplitter cannnot be used anymore for data exported from Magnolia 4.5. As it's impossible to load large XML files into Magnolia/Jackrabbit without splitting the files, this is a crucial functionality in backup/restore scenarios.

Please make the nodetype configurable on command line and please also put some minimal documentation somewhere on how to use this tool, something like this:

FYI: this is how it can be executed:
java -cp WEB-INF/lib/magnolia-module-backup-1.2.2.jar:WEB-INF/lib/commons-io-1.4.jar:WEB-INF/lib/xercesImpl-2.8.1.jar:WEB-INF/lib/commons-lang-2.4.jar info.magnolia.module.backup.ie.XMLFileSplitter [folder containing files to split]
Use the restore script from the Magnolia Wiki (toolsv4_1.jsp) to import the generated files, this way the nodes' order is preserved.



 Comments   
Comment by Jan Haderka [ 29/Oct/13 ]

Marked as release notes required. This fix brings in new feature that allows one to select arbitrary node type that should be used for splitting xml by.

Generated at Sun Feb 11 23:25:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.