Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-730

Only JVM default locales are checked on REST requests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.2.21
    • 2.2.19
    • delivery
    • None

      Currently, there are two different approaches for handling locale tags being used in Magnolia. One, takes into account the JVM default locales or the tag is well-formed, but on REST requests, the handling only checks against the default locales, not allowing the usage of other locales like en_TH or en_TW.

      This could be adapted to make use of the isLocaleValid class on all cases to allow more flexible usages of locales.

       

      Filter in use for the Delivery Endpoint: https://git.magnolia-cms.com/projects/MODULES/repos/rest/browse/magnolia-rest-jcr-delivery/src/main/java/info/magnolia/rest/delivery/jcr/i18n/I18nContainerRequestFilter.java#126 

      Behaviour to mimic: https://git.magnolia-cms.com/projects/PLATFORM/repos/main/browse/magnolia-core/src/main/java/info/magnolia/cms/i18n/AbstractI18nContentSupport.java#163

        Acceptance criteria

              vrg Valeria Robles-Garzon
              rgaona Roberto Gaona
              DeveloperX
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD