Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5635

i18n message bundle resolver cannot handle identical named files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.2.6, 5.3
    • 5.2.1
    • i18n
    • None

    Description

      Assume two or more modules have a message bundle with the same name in their /mgnl-i18n/ directory. The current message bundle resolvers loads just one of them - all other are silently ignored.
      Java supports resolving multiple resources with the same name on the classpath by providing the ClassLoader.getResources method.

      Please consider using this method or fixing it up otherwise. The current implementation is dangerous.

      Workaround: add prefixes to the message bundles and hope, that no other module uses the same prefix/name.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                vidl David Nyffenegger
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD