Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-424

UpdateTask UpdateParagraphInSitesConfig is only usable for update 1.0 to 1.1 in cause of changed value 'defaultSettings' to 'prototype'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.2
    • 1.1.2
    • update
    • None

      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.

        Acceptance criteria

              cringele Christian Ringele
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: