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

i18n message bundle resolver cannot handle identical named files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.2.6, 5.3
    • Component/s: i18n
    • Labels:
      None
    • Patch included:
      Yes
    • Magnolia Release:
      5.2.6, 5.3

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: