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

Content attribute referencing a mixin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      4.3 RC1

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              bmaurel Bérénice Maurel
              Reporter:
              bmaurel Bérénice Maurel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: