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

PACL - PortalDelegateServlet does not work when PACL is enabled

    Details

      Description

      Steps:

      • create a plugin with a web.xml which contains
            <servlet>
                <servlet-name>My Servlet</servlet-name>
                <servlet-class>com.liferay.portal.kernel.servlet.PortalDelegateServlet</servlet-class>
                <init-param>
                    <param-name>servlet-class</param-name>
                    <param-value>my.Servlet</param-value>
                </init-param>
                <init-param>
                    <param-name>sub-context</param-name>
                    <!-- servlet will be available on the path /{liferayContext}/delegate/myservlet -->
                    <param-value>myservlet</param-value>
                </init-param>
                <load-on-startup>1</load-on-startup>
            </servlet>
        
      • set the plugin to enable PACL (security-manager-enabled=true)
      • deploy the plugin
      • attempt to access the servlet
      • you should get an error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.jin Mark Jin (Inactive)
                Reporter:
                raymond.auge Raymond Auge
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 8 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.2 CE GA3
                  6.1.30 EE GA3
                  6.1.X EE
                  6.2.0 CE B2