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

Style Books temporarily unavailable after upgrading from 7.2

Details

    • 7.3.x
    • Committed
    • 3
    • Upgrade|2.1-2.15|Ensaladilla, Upgrade|2.17-3.3|Espeto, Upgrade|3.3-3.17|Gallinejas, Upgrade|3.17-3.31|Gazpacho
    • Database Upgrade

    Description

      After upgrading from 7.2 to 7.3 (or master), the Style Books is no longer accessible and throws errors. See attached logs for more information.

      2021-02-02 01:18:23.034 ERROR [http-nio-8080-exec-1][PortletRequestDispatcherImpl:304] Unable to dispatch request: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: \{companyId=20101, name=com.liferay.style.book, primKey=com.liferay.style.book, scope=4}
      2021-02-02 01:18:23.036 ERROR [http-nio-8080-exec-1][PortletServlet:119] javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: \{companyId=20101, name=com.liferay.style.book, primKey=com.liferay.style.book, scope=4}
      javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: \{companyId=20101, name=com.liferay.style.book, primKey=com.liferay.style.book, scope=4}
      

      Steps to Reproduce:

      1. Launch a clean 7.2 DXP bundle.
      2. Shut down the bundle once portal appears in the browser.
      3. Upgrade to 7.3 and launch the 7.3 bundle.
      4. Navigate to [Site_Administration] > Design > Style Books.

      Actual results:
      Style Books is unavailable. The message "Style Books is temporarily unavailable." is displayed.

      Expected results:
      Style Books is available and does not cause errors.

      Notes:
      Upon examination, the issue is caused by missing model resource permissions for the Style Books portlet. For some reason, after an upgrade, the portal startup fails to create these permissions. Specifically, the portal startup fails to read the model resources (ServiceConfigurationInitializer._readResourceActions()) before the default resource permissions are created (ResourcePermissionLocalServiceImpl.initPortletDefaultPermissions()), resulting in missing resource permissions for the Style Books portlet. A non-upgraded portal does not experience this issue.

      Attachments

        Issue Links

          Activity

            People

              summer.zhang Summer Zhang
              kevin.lee Kevin Lee
              Kiyoshi Lee Kiyoshi Lee
              Kevin Lee Kevin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 1 week, 6 days ago

                Packages

                  Version Package
                  7.3.X
                  7.4.3.5 CE GA5
                  7.4.13 DXP U1
                  Master