[MGNLDATA-266] 2.2 deltas - Exception thrown if item exists - Blocks execution of next deltas Created: 06/Jan/15  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Magnolia Data Module (closed)
Component/s: None
Affects Version/s: 2.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Benoit Olbrechts Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Visible to:
Benoit Poncelet, Hugo Venancio

 Description   

The deltas related to data module 2.2. are executed when upgrading to magnolia 5.

One of those tasks calls the class info.magnolia.module.data.setup.DataTypeToContentAppTask which throws a TaskExecutionException when an item already exists. This leads to other tasks not executed afterward...
@see: info.magnolia.module.data.setup.DataTypeToContentAppTask#processApp

I guess this should be just a warning a leave the execution of other tasks?

This is called from info.magnolia.module.data.setup.DataModuleVersionHandler:

.addTask(new DataTypesToContentAppsTask("Create apps", "Creates new apps for custom data types", new String[] { "Contact", "RssAggregator", "category" }))

Generated at Mon Feb 12 05:12:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.