-
Type:
Technical Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: 7.0.0 DXP FP33, 7.0.0 DXP SP7, 7.0.5 CE GA6, Master
-
Component/s: None
-
Git Pull Request:
Test failures:
V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_actionURL29
V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_actionURL30
The two test cases fail because no Exception is raised while defining action tag.
Background:
According to PLT 26.2 actionURL Tag and 26.3 renderURL Tag,
A JspException with the java.lang.IllegalStateException that caused this error as root cause is thrown in the following cases: If this tag is used in markup generated during resource request processing that was directly or indirectly triggered via a resource URL of type FULL or PORTLET .
In Liferay, this logic is already implemented in method ResourceResponseImpl.createLiferayPortletURL(String portletName, String lifecycle), however, the ActionURLTag doesn't call this method to create the URL object. This logic should be moved to the createLiferayPortletURL method that all its overloads delegate to.