Description
Both V3URLTests_BaseURL_append and V3URLTests_BaseURL_append2 call baseURL.setParameter("tr1", ">&'\"") followed by baseURL.append(Appendable) in order to verify that the following characters are not present in the Appendable object:
- >
- &
- '
- "
The check for the absence of the ampersand character is done like this:
if (!resultingString.contains("&") { ... }
However, this check assumes that the portlet container will not use the ampersand character in any way. Liferay Portal typically separates URL parameters with an ampersand, which causes the aforementioned tests to fail in Liferay Portal. The reason why this works on Apache Pluto is because it never uses an ampersand to separate URL parameters.
The proposed solution would be to simply eliminate the check for the presence of an ampersand character.