-
Bug
-
Resolution: Fixed
-
Critical
-
4.3.0
-
None
-
None
-
4.3 RC1
It's impossible to start the CMS if a content attribute references a mixin. On the mixin, attribute title is not defined in most case, so we have the following error :
[...] Caused by: java.lang.Exception: Caught an exception trying to initialize the component myAttribute at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:212) at org.ametys.cms.search.ui.model.StaticSearchUIModel.configure(StaticSearchUIModel.java:199) ... 109 more Caused by: org.ametys.runtime.model.exception.UndefinedItemPathException: The item at path 'title' is not defined in the model item container ''content-type.MyMixin''. at org.ametys.runtime.model.ModelItemContainer.getModelItem(ModelItemContainer.java:77) at org.ametys.cms.search.content.ContentSearchHelper.lambda$9(ContentSearchHelper.java:398) at java.base/java.util.Optional.map(Optional.java:265) at org.ametys.cms.search.content.ContentSearchHelper.isTitleMultilingual(ContentSearchHelper.java:398) at org.ametys.cms.search.ui.model.impl.MetadataSearchUIColumn.configure(MetadataSearchUIColumn.java:170) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:359) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.newInstance(ThreadSafeComponentManager.java:378) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:206) ... 110 more