Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11356

MultiStringValuesProperty is not working

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.6.0
    • 4.6.0
    • None
    • None
    • 4.6 M4

      I have a property defined like this:

      	<cms:property name="typeStructure" class="org.ametys.cms.content.properties.MultiStringValuesProperty">
      		<attribute path="myPath1/typeStructure"/>
      		<attribute path="myPath2/typeStructure"/>
      		<attribute path="myPath3/typeStructure"/>
      		<attribute path="myPath4/typeStructure"/>
      	</cms:property>

      On starting the CMS, I get this error:

      Caused by: org.apache.avalon.framework.configuration.ConfigurationException: No attribute named "path" is associated with the configuration element "property" at file://myPath/WEB-INF/param/content-types/my-plugin/MyContentType.xml:1595:103
      	at org.apache.avalon.framework.configuration.DefaultConfiguration.getAttribute(DefaultConfiguration.java:275)
      	at org.ametys.cms.model.properties.ElementRefProperty.configure(ElementRefProperty.java:49)
      	at org.ametys.cms.content.properties.MultiStringValuesProperty.configure(MultiStringValuesProperty.java:42)
      	at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:383)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.newInstance(ThreadSafeComponentManager.java:402)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:230)
      	... 88 more

            cbayle Caroline Bayle
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: