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:
                  5 years, 41 weeks, 6 days ago