-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE, 7.0.0 CE GA1
-
Fix Version/s: 6.2.X EE, 7.0.0 CE RC1
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:3
-
Git Pull Request:
Language hooks hot deploy: a property file with a not configured language will overwrite default language property file
For example:
<hook> <language-properties>Language.properties</language-properties> <language-properties>Language_bb_BB.properties</language-properties> <language-properties>Language_es_ES.properties</language-properties> </hook>
HookHotDeployListener.initLanguageProperties code will do the following:
- Language.properties ==> will be detected as locale = null and readed as baseLanguageProperties because filename has no language code
- Language_bb_BB.properties ==> will be detected as locale = null because language code "bb_BB" is not configured at portal-ext.properties and will overwrite previoust baseLanguageProperties
- Language_es_ES.properties ==> will be detected as locale = es_ES
Steps to reproduce
- Create a language hook with a valid and a invalid language, for example:
<hook> <language-properties>content/Language_bb_BB.properties</language-properties> <language-properties>content/Language_es_ES.properties</language-properties> </hook>
- Activate DEBUG level traces for com.liferay.portal.deploy.hot.HookHotDeployListener
- Install language hook
- Expected behaviour: bb_BB is ignored. Following trace is written to log: Ignoring content/Language_bb_BB.properties
- Expected behaviour: bb_BB is ignored. Following trace is written to log: Ignoring content/Language_bb_BB.properties
- causes
-
LPS-64676 Deploying KB throws console errors - Invalid locale
- Closed
- is duplicated by
-
LPS-64213 Language hooks are not correctly loaded when configuring more than one file for default properties or for a specific locale
- Closed
- relates
-
LPE-14872 A property file with an unconfigured language will overwrite default language property file
-
- Closed
-