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

As a Plugin Developer I don't want to allow other JSP Hooks to override the already overridden files again

    Details

      Description

      JSP hooks

      Currently the portal doesn't check whether a plugin tries to override a file which has already overridden by another hook and the result is unpredictable in this cases.

      Steps to reproduce:

      1. Create two JSP hooks (TestJSP-Hook-1,TestJSP-Hook-2) which overrides the same /portal-web/docroot/html/portlet/login/login.jsp with different content
      2. Deploy the hooks one by one

      Actual result: The portal allows to override the same login.jsp again from TestJSP-Hook-2 and doesn't check if it was already overridden
      Expected result: The portal should throw an error on deploy time when it notices that the plugin to be deployed tries to override the same file


      Note for QA: On ee-6.2.x you should set the following property to true in your portal-ext.properties to able to test it:
      hot.deploy.hook.custom.jsp.verification.enabled=true

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lawrence.lee Lawrence Lee
              Reporter:
              zoltan.takacs Zoltan Takacs
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5