Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-559

Declaring a date configuration parameter makes it impossible to have a valid configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2
    • 2.0, 2.1
    • Workspace admin
    • None

      A configuration parameter of type "date" is rendered correctly in the configuration screen, but cannot be saved:

      java.lang.IllegalArgumentException: Invalid format: "Mon Jan 10 2011 00:00:00 GMT+010..."
      	at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:673)
      	at org.ametys.runtime.util.parameter.ParameterHelper.castValue(ParameterHelper.java:137)
      	at org.ametys.runtime.config.ConfigManager.save(ConfigManager.java:587)
      	at org.ametys.runtime.plugins.core.administrator.configuration.SaveConfigAction.act(SaveConfigAction.java:75)
      

      As the configuration is not saved and therefore the parameter never valued, the site can't run.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: