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

Search result of the "page search" service

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.3.0
    • 4.3.0
    • Plugin : Search
    • None
    • 4.3 RC3

      How to reproduce

      • Since the demo search with the keyword Ametys
      • validate your research

      After displaying the result, the field used to write a new search disappears.
      However if the keyword gives results on two pages, we do not see the error

        1. recherche avec le mot clé ametys.png
          79 kB
          Anastasia François
        2. recherche avec le mot clé avec.png
          85 kB
          Anastasia François

          [CMS-10348] Search result of the "page search" service

          Anastasia François made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          This seems to occurs when the result contains a FAQ result.

          The error in logs is

          org.ametys.runtime.model.exception.BadDataPathCardinalityException: Unable to retrieve the value at path 'questions/answer'. The segment 'questions' refers to a multiple data and can not be used inside the data path.
          	at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder._getValue(DefaultModelAwareDataHolder.java:223)
          	at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder.getValue(DefaultModelAwareDataHolder.java:165)
          	at org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject.getValue(ModelAwareDataAwareAmetysObject.java:91)
          	at org.ametys.plugins.repository.data.holder.ModelAwareDataHolder.getValue(ModelAwareDataHolder.java:159)
          	at org.ametys.web.frontoffice.AbstractSearchGenerator.saxContent(AbstractSearchGenerator.java:1082)
          	at org.ametys.web.frontoffice.AbstractSearchGenerator._saxPageContents(AbstractSearchGenerator.java:661)
          	at org.ametys.web.frontoffice.AbstractSearchGenerator.saxPageHit(AbstractSearchGenerator.java:623)
          	at org.ametys.web.frontoffice.SearchGenerator.saxHits(SearchGenerator.java:799)
          	at org.ametys.web.frontoffice.AbstractSearchGenerator.search(AbstractSearchGenerator.java:352)
          	at org.ametys.web.frontoffice.AbstractSearchGenerator.search(AbstractSearchGenerator.java:278)
          	at org.ametys.web.frontoffice.SearchGenerator.search(SearchGenerator.java:299)
          	at org.ametys.web.frontoffice.AbstractSearchGenerator.generate(AbstractSearchGenerator.java:211)
          

          Laurence Aumeunier added a comment - This seems to occurs when the result contains a FAQ result. The error in logs is org.ametys.runtime.model.exception.BadDataPathCardinalityException: Unable to retrieve the value at path 'questions/answer'. The segment 'questions' refers to a multiple data and can not be used inside the data path. at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder._getValue(DefaultModelAwareDataHolder.java:223) at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder.getValue(DefaultModelAwareDataHolder.java:165) at org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject.getValue(ModelAwareDataAwareAmetysObject.java:91) at org.ametys.plugins.repository.data.holder.ModelAwareDataHolder.getValue(ModelAwareDataHolder.java:159) at org.ametys.web.frontoffice.AbstractSearchGenerator.saxContent(AbstractSearchGenerator.java:1082) at org.ametys.web.frontoffice.AbstractSearchGenerator._saxPageContents(AbstractSearchGenerator.java:661) at org.ametys.web.frontoffice.AbstractSearchGenerator.saxPageHit(AbstractSearchGenerator.java:623) at org.ametys.web.frontoffice.SearchGenerator.saxHits(SearchGenerator.java:799) at org.ametys.web.frontoffice.AbstractSearchGenerator.search(AbstractSearchGenerator.java:352) at org.ametys.web.frontoffice.AbstractSearchGenerator.search(AbstractSearchGenerator.java:278) at org.ametys.web.frontoffice.SearchGenerator.search(SearchGenerator.java:299) at org.ametys.web.frontoffice.AbstractSearchGenerator.generate(AbstractSearchGenerator.java:211)
          Laurence Aumeunier made changes -
          Comment [ Reproduced when the service is configured with :
          * *Types of content* : All
          * *Choice of the type of contents*: None

          Then do a search that returns only one result page ("Ametys" for example on demo data) ]
          Laurence Aumeunier made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Laurence Aumeunier made changes -
          Assignee New: Laurence Aumeunier [ laurence ]
          Raphaël Franchet made changes -
          Rank New: Ranked higher
          Raphaël Franchet made changes -
          Rank New: Ranked higher
          Raphaël Franchet made changes -
          Comment [ The bug is
          the ContentTool in read mode is opened
          the ContentTool is not visible
          the ContentTool is out of date
          the ContentTool is switch to edition (without previously give it the focus back)
          => double refresh ]
          Anastasia François made changes -
          Projet New: MCOMBSVILL-79, CGDROME-502, SIGMACLERM-142

            laurence Laurence Aumeunier
            afrancois Anastasia François
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: