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

[Solr] FO search failed when textfield contains double quote

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0M13
    • None
    • Plugin : Search
    • None

      How to reproduce

      • Go on FO search service
      • In text field enter : ametys "enquête en ligne"

      The quote double are escaped twice into join query

      Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: org.apache.solr.search.SyntaxError: Expected identifier at pos 59 str='{!join from=id to=contentIds v="full_fr:(ametys\ \\"enquête\ en\ ligne\\")"}'
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:577)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:241)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:230)
      	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:149)
      	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:942)
      	at org.ametys.web.frontoffice.AbstractSearchGenerator.search(AbstractSearchGenerator.java:295)
      	at org.ametys.web.frontoffice.AbstractSearchGenerator.search(AbstractSearchGenerator.java:249)
      	at org.ametys.web.frontoffice.SearchGenerator.search(SearchGenerator.java:195)
      	at org.ametys.web.frontoffice.AbstractSearchGenerator.generate(AbstractSearchGenerator.java:209)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      

            sprieul Simon Prieul (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: