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

Portlet ID references in custom css not upgraded for documents and media display portlet in 7.2

    Details

      Description

      Portlet ID references in custom css not upgraded for documents and media display portlet in 7.2 even after LPS-118902 solution is applied

      Other portlets are not affected by this bug.

      This issue is not reproduced in master because:

      • In master branch, UpgradeDocumentLibraryPortletId extends the com.liferay.portal.kernel.upgrade.BaseUpgradePortletId class, that class contains the LPS-118902 changes
      • In 7.2.x branch, UpgradeDocumentLibraryPortletId extends the deprecated com.liferay.portal.upgrade.util.UpgradePortletId class, that class doesn't contains LPS-118902 changes.

      Reproducing steps

      1. Start up a Liferay 6.2.
      2. Add documents and media display portlet
      3. Go to its Look and Feel > Advanced Styling and make use of the Portlet ID's reference for CSS.
        • For example, for the documents and media display portlet it would read something like: #portlet_110_INSTANCE_Y3IiwK51r0YH
        • It could be used like
          #portlet_110_INSTANCE_Y3IiwK51r0YH {
              background-color: red
          }
          
      4. Upgrade from 6.2 to 7.2.x version
        • In this upgrade there's a step changing the portlet name's from numbers to fully qualified names. For example: 110 will become com_liferay_document_library_web_portlet_DLPortlet.
      5. Start up the upgraded installation
        Expected: The documents and media portlet has the same styles as before, with a red background color is still red.)
        Observed: The portlet has lost the previous style.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                22 weeks ago

                  Packages

                  Version Package
                  7.2.10 DXP FP9
                  7.2.X