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

Content indexation failed with a custom MultiStringValuesIndexingField

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC3
    • 4.0RC2
    • None
    • None

      The custom field is the following

      <cms:custom-metadata-field name="pays" class="org.ametys.cms.contenttype.indexing.MultiStringValuesIndexingField">
                  <metadata path="adressePrincipale/commune/faitPartieDepartement/faitPartieAcademie/faitPartieRegion/faitPartieDe"/>
                  <metadata path="adressePrincipale/communeEtrangere/pays"/>
              </cms:custom-metadata-field>
      

      The indexation failed with error:

      rg.ametys.plugins.repository.AmetysRepositoryException: An object id must conform to the <protocol>://<protocol-specific-part> syntax: []
      	at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:298)
      	at org.ametys.cms.content.indexing.solr.SolrContentIndexer.indexContentValues(SolrContentIndexer.java:1203)
      	at org.ametys.cms.content.indexing.solr.SolrContentIndexer.indexValues(SolrContentIndexer.java:624)
      	at org.ametys.cms.content.indexing.solr.SolrContentIndexer.indexModelFields(SolrContentIndexer.java:195)
      	at org.ametys.cms.content.indexing.solr.SolrContentIndexer.indexContent(SolrContentIndexer.java:133)
      	at org.ametys.cms.content.indexing.solr.SolrIndexer.doIndexContent(SolrIndexer.java:976)
      	at org.ametys.cms.content.indexing.solr.SolrIndexer.indexContent(SolrIndexer.java:677)
      	at org.ametys.cms.content.indexing.solr.observation.IndexContentObserver.observe(IndexContentObserver.java:98)
      	at org.ametys.core.observation.ObservationManager._observesEvent(ObservationManager.java:202)
      	at org.ametys.core.observation.ObservationManager.notify(ObservationManager.java:146)
      	at org.ametys.cms.workflow.EditContentFunction._notifyContentModified(EditContentFunction.java:407)
      

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: