[MAGNOLIA-5430] i18nsystem: if property files have same name under mgnl-i18n directory, only one of them will be loaded Created: 30/Oct/13 Updated: 09/Jun/15 Resolved: 19/May/14 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | i18n |
| Affects Version/s: | 5.1 |
| Fix Version/s: | 5.2.6, 5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Christopher Zimmermann | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
To reproduce: 2. Add some keys to it. 3. Run magnolia and see how only the keys from one of the files are used. Analysis: findResources uses a HashSet to store found resources. So probably each time a new file with the same name (path) is discovered - it replaces the one that was already in the HashSet. Note the hashmap is working with the full path under the mgnl-i18n directory - so if two files have same name, but one is in a subdirectory - then both files will be loaded as the path is different. |
| Comments |
| Comment by Christopher Zimmermann [ 19/May/14 ] |
|
See linked ticket. |
| Comment by Magnolia International [ 09/Jun/15 ] |
|
Set fixVersion to [5.2.6, 5.3] since this is where |