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

can't create Virtual Instances when there are legacy portlets that use non-system roles in security-role-ref

    Details

      Description

      1.Create a standard .war portlet
      2. In portlet.xml, include the following custom role:

      <security-role-ref>
      <role-name>zalan-role</role-name>
      </security-role-ref>

      3. In liferay-portlet.xml, include the following mapping:

      </role-mapper>
      <role-mapper>
      <role-name>zalan-role</role-name>
      <role-link>szimi-role</role-link>
      </role-mapper>

      4. Build the portlet - It is attached to the ticket under the name "TestPortletDevStudio-portlet-7.0.0.1.war"
      5. Start up the official 7.0 SP8 Tomcat bundle
      6. Create a new Regular role: szimi-role
      7. Deploy the portlet, "TestPortletDevStudio-portlet-7.0.0.1.war"
      8. Create a new Virtual instance

      Instance creation fails, as szimi-role does not exist. If you undeploy the portlet, create the instance, and create the role, everything works fine.

        Attachments

          Activity

            People

            • Assignee:
              joyce.wang Joyce Wang
              Reporter:
              norbert.kocsis Norbert Kocsis
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                39 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP79
                7.0.10.11 DXP SP11
                7.0.X
                7.1.10 DXP FP10
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master