Affects Version/s: 7.1.0 CE GA1, 7.1.10 DXP GA1, 7.1.10 DXP FP1, 7.1.10 DXP FP2, 7.1.10 DXP FP3, 7.1.1 CE GA2, 7.1.10 DXP FP4, 7.1.10 DXP FP5, 184.108.40.206 SP1, 7.1.2 CE GA3, 7.1.10 DXP FP6, 7.1.10 DXP FP7, 7.1.10 DXP FP8
Fix Version/s: Master
When dispatching to JSPX for the HeaderResponse, the resulting markup contains self-closing XML tags. For example, given the following markup:
After compilation and dispatch, the resulting markup will look like the following:
Liferay Portal has a bug such that when certain self-closing <link/> and <meta/> tags are added to the head section, the tags become malformed as <link/></link> and <meta/></meta> respectively.
- Copy the attached WAR to the $LIFERAY_HOME/deploy folder and add the portlet named "LPS-XYZ" to the portal page.
- Reload the page.
- Click the "Test" button.
An popup displays "The test was successful."
The popup does not display and there is a stacktrace in the console log indicating that the XML could not be parsed because of malformed text <link ... /></link>.