[MGNLSTK-424] UpdateTask UpdateParagraphInSitesConfig is only usable for update 1.0 to 1.1 in cause of changed value 'defaultSettings' to 'prototype' Created: 05/Aug/09  Updated: 23/Jan/13  Resolved: 13/Nov/09

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: update
Affects Version/s: 1.1.2
Fix Version/s: 1.2

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Christian Ringele
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

The intention of the class info.magnolia.module.templatingkit.setup.UpdateParagraphInSitesConfig.java was:
Having a general update task that provides a general mechanism for updating the STK Site-Configs.

From STK1.0 to STK 1.1 value 'defaultSettings' changed to 'prototype'.

In the method 'private Content getDefaultSettingsFromSite(...' it is referred to the 'defaultSettings' value hardcoded:
if(templates.hasContent("defaultSettings"))

{ return templates.getContent("defaultSettings"); }

This has the impact, that this class is only usable for update of 1.0 to 1.1, but afterwards it will fail.
I have deprecated the class for finding a solution for STK 1.2.



 Comments   
Comment by Philipp Bärfuss [ 13/Nov/09 ]

Is deprecated now. At is enough.

Generated at Mon Feb 12 07:26:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.