Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4497

Incorrect locale is used to retrieve ValueListProvider display values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.1.0
    • None
    • None
    • Tiger Sprint 198, Tiger Sprint 199

    Description

      Component properties of type DropDownList can be populated by using a ValueListProvider. The values come from a resource bundle, that can have multiple locales. When retrieving a display value from a ValueListProvider the preferredLocale is used. It turns out that this is not the locale that the user has chosen when logging in to the CMS.

      The code to be changed is in org.hippoecm.hst.pagecomposer.jaxrs.model.ParametersInfoProcessor#createPropertyMap. (line 237).

      The user's locale is passed to HST in the request from the channel manager to retrieve the component variant. This locale should also be used to retrieve the display values from the ValueListProvider.

      org.hippoecm.hst.pagecomposer.jaxrs.services.ContainerItemComponentResource#getVariant

      Attachments

        Activity

          People

            Unassigned Unassigned
            bleunis Bert Leunis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: