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

[Indexation] Error on properties in repeater

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.8.0
    • None
    • None
    • None
    • 4.8.0 M9

      How to reproduce:

      • In exhaustive content type
        • Add a property referencing composite/repeater/comp-longmult
        • Add the property in main view
      • Create an exhaustive content, add some entries and fill comp-longmult data
      • Save => Ok
      • The content is Indexed, but there is an error in the logs => KO
      org.ametys.runtime.model.exception.BadItemTypeException: Try to get long value from the non long data 'comp-longmult' on '/ametys:root/ametys-internal:sites/45/7d/www/ametys-internal:contents/39/8e/contenu-exhaustif-6/ametys:composite/ametys:repeater/ametys:1 (76b83c52-c905-4963-bf53-129620c10e17)'
          at org.ametys.cms.data.type.impl.LongRepositoryElementType.read(LongRepositoryElementType.java:44)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder._getElementValue(DefaultModelAwareDataHolder.java:365)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder._getValue(DefaultModelAwareDataHolder.java:267)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder.getValue(DefaultModelAwareDataHolder.java:232)
          at org.ametys.plugins.repository.data.holder.group.ModelAwareComposite.getValue(ModelAwareComposite.java:91)
          at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.aggregateMultipleValues(DataHolderHelper.java:1215)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder._getMultipleValues(DefaultModelAwareDataHolder.java:422)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder._getValue(DefaultModelAwareDataHolder.java:280)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder.getValue(DefaultModelAwareDataHolder.java:232)
          at org.ametys.plugins.repository.data.holder.group.ModelAwareComposite.getValue(ModelAwareComposite.java:91)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder._getValue(DefaultModelAwareDataHolder.java:303)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder.getValue(DefaultModelAwareDataHolder.java:232)
          at org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject.getValue(ModelAwareDataAwareAmetysObject.java:117)
          at org.ametys.cms.model.properties.ElementRefProperty.getValue(ElementRefProperty.java:126)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder._hasValue(DefaultModelAwareDataHolder.java:615)
          at org.ametys.cms.data.holder.impl.DefaultModelAwareDataHolder.hasValue(DefaultModelAwareDataHolder.java:577)
          at org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject.hasValue(DataAwareAmetysObject.java:53)
          at org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject.hasValue(ModelAwareDataAwareAmetysObject.java:82)
          at org.ametys.web.indexing.solr.SolrPageIndexer._findAndIndexFacetableField(SolrPageIndexer.java:581)
          at org.ametys.web.indexing.solr.SolrPageIndexer._indexFacetableFields(SolrPageIndexer.java:567)
          at org.ametys.web.indexing.solr.SolrPageIndexer._populatePageContentsDocument(SolrPageIndexer.java:501)
          at org.ametys.web.indexing.solr.SolrPageIndexer._populatePageDocument(SolrPageIndexer.java:326)
          at org.ametys.web.indexing.solr.SolrPageIndexer._indexPage(SolrPageIndexer.java:247)

            cbayle Caroline Bayle
            cbayle Caroline Bayle
            Caroline Bayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: