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

Parameters stored in XML cannot not be empty for type long, double, boolean... and may others

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.6.0
    • None
    • None
    • None
    • 4.6 RC4

      I have "long" and non mandatory parameters for a user directory (store in user-populations.xml file)
      As they are not mandatory, they can be empty. There are stored such as;

      <runtime.users.jdbc.strong.password.min-lowercase/>
      

      But when reading the XML file, the population is in error:

      org.apache.avalon.framework.configuration.ConfigurationException: The population of id 'membres-espaces-projets' declares a user directory model with id 'org.ametys.plugins.core.user.directory.Jdbc' but the parameter 'runtime.users.jdbc.strong.password.min-lowercase' is missing. This user directory will be ignored.
      	at org.ametys.core.user.population.UserPopulationDAO._getUDParametersFromConfiguration(UserPopulationDAO.java:1395)
      	at org.ametys.core.user.population.UserPopulationDAO._configureUserDirectories(UserPopulationDAO.java:1308)
      

      Empty value is not permitted. I have no choice to set my parameter as mandatory.
      I suppose this is the same for configuration parameters.

            cbayle Caroline Bayle
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: