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

i18n message bundle resolver cannot handle identical named files

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD