Uploaded image for project: 'Skin factory'
  1. Skin factory
  2. SKINFACTORY-70

When there is an empty parameter in the default-value.xml file, the skin factory should continue reading the document

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.0
    • 1.0.0
    • None

      How to reproduce :
      In the default-values.xml file of the model, add an empty parametter like this

      <parameter id="main.color" />

      > the skin factory does not continue reading the document

          [SKINFACTORY-70] When there is an empty parameter in the default-value.xml file, the skin factory should continue reading the document

          org.apache.avalon.framework.configuration.ConfigurationException: No value is associated with the configuration element "parameter" at null:28:43
          	at org.apache.avalon.framework.configuration.DefaultConfiguration.getValue(DefaultConfiguration.java:214)
          	at org.ametys.skinfactory.model.SkinModel._refreshDefaultValues(SkinModel.java:390)
          	at org.ametys.skinfactory.model.SkinModel.getDefaultValues(SkinModel.java:227)
          	at org.ametys.skinfactory.SkinFactoryComponent.applyModelParameters(SkinFactoryComponent.java:975)
          	at org.ametys.skinfactory.SkinFactoryComponent.applyModelParameters(SkinFactoryComponent.java:961)
          	at org.ametys.skinfactory.actions.OpenSkinAction.act(OpenSkinAction.java:116)
          

          Laurence Aumeunier added a comment - org.apache.avalon.framework.configuration.ConfigurationException: No value is associated with the configuration element "parameter" at null :28:43 at org.apache.avalon.framework.configuration.DefaultConfiguration.getValue(DefaultConfiguration.java:214) at org.ametys.skinfactory.model.SkinModel._refreshDefaultValues(SkinModel.java:390) at org.ametys.skinfactory.model.SkinModel.getDefaultValues(SkinModel.java:227) at org.ametys.skinfactory.SkinFactoryComponent.applyModelParameters(SkinFactoryComponent.java:975) at org.ametys.skinfactory.SkinFactoryComponent.applyModelParameters(SkinFactoryComponent.java:961) at org.ametys.skinfactory.actions.OpenSkinAction.act(OpenSkinAction.java:116)

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: