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

Redeploying module with resource actions XML doesn't refresh portlet permissions

    Details

    • Fix Priority:
      4
    • Sprint:
      AS | Iteration 9, AS | Iteration 10, AS | Iteration 11, AS | Iteration 12, AS | Iteration 13, AS | Iteration 14, AS | Iteration 15, AS | Iteration 16, AS | Iteration 17, AS | Iteration 18, AS | Iteration 19, AS | Iteration 20, AS | Iteration 21

      Description

      Problem description:

      When a portlet is made up only of {{MVCAction}}s it doesn't need to depend on other services / components. For example it doesn't depend on *-service module that contributes to portlet resource actions. When such contributing module is redeployed with resource action changes those changes are not reflected in resource permissions.

       

      Steps to reproduce:

      1. Stop portal if running
      2. Clean portal database
      3. Comment out resource.actions.configs in oauth2-provider-service/portlet.properties
      4. Build and deploy oauth2-provider-service module
      5. Start portal
      6. Go to Control Panel -> OAuth 2 Administration
      7. Verify there are error logs similar to
        com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=20100, name=com.liferay.oauth2.provider, primKey=com.liferay.oauth2.provider, scope=4}
      8. Undo changes in oauth2-provider-service/portlet.properties
      9. Build and deploy oauth2-provider-service module
      10. Wait for module deployment and visit again Control Panel -> OAuth 2 Administration

       Expected result: No error in logs
       Actual result: Again the same error log

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              tomas.polesovsky Tomáš Polešovský
              Participants of an Issue:
              Recent user:
              Della Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package