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

      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

              Assignee:
              team-echo Product Team Echo
              Reporter:
              kevin.lee Kevin Lee
              Participants of an Issue:
              Recent user:
              Sam Ziemer
              Engineering Assignee:
              Kevin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                7 weeks, 6 days ago

                  Packages

                  Version Package