-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.30 EE GA3, 6.2.10 EE GA1, 7.0.0 Alpha 1
-
Fix Version/s: 6.1.X EE, 6.2.X EE, 7.0.0 Alpha 2
-
Component/s: Pages > Page Administration, Sites Administration > Sites
-
Branch Version/s:6.2.x, 6.1.x
-
Backported to Branch:Committed
-
Story Points:9
-
Fix Priority:2
-
Git Pull Request:
DESCRIPTION
After setting the properties below in the JVM arguments, page names with the ampersand sign (&) will get truncated.
The system properties:
javax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl
javax.xml.stream.XMLOutputFactory=com.sun.xml.internal.stream.XMLOutputFactoryImpl
STEPS TO REPRODUCE
- Get a new bundle of Liferay 6.1.30 (tomcat is fine)
- Add these lines to the JVM arguments in tomcat/bin/setenv.sh:
- -Djavax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl
- -Djavax.xml.stream.XMLOutputFactory=com.sun.xml.internal.stream.XMLOutputFactoryImpl
- Startup Liferay
- Add a new page
- Add a translation to the page with an ampersand in the name: 'test&test'
- Save the page
Notes
Per Eric Chin,
See here for my fix: https://gist.github.com/ericchin/ecf0046386cef4e62b76#file-localizationimpl-java-L22-L33
The fix from
LPS-14852was made to com.liferay.portal.util.LocalizationImpl#getLocalization. I would like to have the same fix for com.liferay.portal.util.LocalizationImpl#_copyNonExemptIssue is related to this blog post: https://www.liferay.com/web/igor.spasic/blog/-/blogs/careful-with-the-xmlstreamreader-gettext-!
- relates
-
LPE-14403 Page name translations do not save properly when the name contains an ampersand (&) and certain xml system properties are set
-
- Closed
-