Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-4756

Using a double in plugin configuration is system locale dependent

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • r2.17.02, 2.21.00
    • None
    • None

    Description

      Set up: a (service) plugin wants to use a configuration property with type Double.

      When retrieving this property in the plugin using config.getDouble, where config is a ClusterConfigDecorator
      implementation of IPluginConfig, the parsing of the value depends on the default system locale. So this can lead to different behaviour on different machines.

      The reason for this is that Hippo's AbstractValueMap.getDouble uses Wicket's StringValue.toDouble which uses a locale from
      Locale.getDefault().

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: