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

Model resources defined by a module disappear after portlet is redeployed

    Details

      Description

      Reproducing steps for all affected versions

      1. Start up Liferay installation
      2. Deploy the module (res.act.module.jar) and portlet (res-act-portlet.war) attached in this ticket. The module includes a file default.xml referencing the portlet:
        <?xml version="1.0"?>
        <!DOCTYPE resource-action-mapping PUBLIC "-//Liferay//DTD Resource Action Mapping 7.0.0//EN" "http://www.liferay.com/dtd/liferay-resource-action-mapping_7_0_0.dtd">
        
        <resource-action-mapping>
            <model-resource>
        		<model-name>res.act.module</model-name>
        		<portlet-ref>
        			<portlet-name>resactportlet_WAR_resactportlet</portlet-name>
        		</portlet-ref>
        		<weight>2</weight>
        		<permissions>
        			<supports>
                                    <action-key>TESTACTION</action-key>
        			</supports>
        		</permissions>
        	</model-resource>
        </resource-action-mapping>
        
      3. Go to Control Panel > Users > Roles and go to Define Permissions for any of the regular roles.
      4. In the search box, type res-act-portlet.
        There is a section called Resource Permissions with two actions, one of which is action.TESTACTION
      5. Redeploy the war portlet by dropping it again in the /deploy folder.
      6. Reload the page and search again for res-act-portlet
        Expected: We can still see section Resource Permissions with its two actions.
        Observed: The section Resource Permissions has disappeared.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              ricardo.couso Ricardo Couso
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 1 week, 5 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP3
                  7.1.1 CE GA2
                  7.1.10.1 SP1
                  7.1.X
                  Master