Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-76178

Portlet display templates changes are not updated in a existing Liferay installation after patching or upgrading it

    Details

      Description

      Portlet display templates changes are not updated in existing Liferay installation.
      That templates are inserted during startup into DDMTemplate table of database.

      For example, in LPS-69786 or LPS-76010 we are changing the template portlet_display_template_rich_summary.ftl due some bugs. If a customer updates to a version that includes the solution to that bug, the template that it is stored in DDMTemplate table, it is not updated.

      Steps to reproduce

      1. Install Liferay 7.0 SP1 (related bug are not solved in that version)
      2. Verify that LPS-69786 or LPS-76010 issues are reproduced (follow the steps that are explained in that bugs)
      3. Upgrade to last available master (that bugs are already solved in master branch)
      4. Verify again issues LPS-69786 or LPS-76010
        • Expected behavior: the issues are not reproduced
        • Wrong behavior: the issues are reproduced

      This bug is not reproduced in case of a fresh install of Liferay because DDMTemplate table is generated in first startup

      Solution:
      In order to solve this issue, we should update the existing record in case of it was not modified by anyone.
      If template was modified, we cannot update them because we will overwrite customer changes.

        Attachments

        1. BugRecording.mov
          321 kB
        2. BugRecording2.mov
          387 kB
        3. Fixed.gif
          Fixed.gif
          985 kB
        4. Fixed.PNG
          Fixed.PNG
          34 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 26 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP40
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master