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:
- 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
- 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: