Issue Type: Bug Bug
Affects Versions: 5.1
Assignee: Unassigned
Created: 30/Oct/13 4:15 PM
Description:

To reproduce:
1. Create a new message property file in a project that has the same name as the property file in a different project.
ie we discovered this when trying to create a new shellapp-app-launcher-messages_en.properties in the stk project (one already exists in admincentral at:
/magnolia-ui-admincentral/src/main/resources/mgnl-i18n/shellapp-app-launcher-messages_en.properties)

2. Add some keys to it.

3. Run magnolia and see how only the keys from one of the files are used.

Analysis:
files are loaded at: info.magnolia.i18nsystem.DefaultMessageBundlesLoader#loadMessages()
This uses ClasspathResourcesUtil.findResources(new ClasspathResourcesUtil.Filter()

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.
I wonder if this was intentional in findResources? My first assumption is that findResources is the problem and the implementation should be changed. Maybe it is assuming that all files come from one parent directory?

Fix Versions: 5.2
Project: Magnolia
Priority: Major Major
Reporter: Christopher Zimmermann
Security Level: Public
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to