Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-4227

[Search service] Criteria on enumerated data and no corresponding facet leads to an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.10.0
    • None
    • None
    • None
    • 4.10 M8

      How to reproduce:

      • In ODF Web Template
        • not reproductible in classic Web Template, don't know why yet
      • Create a search service on any content type
        • reproduced with program and article
        • Add an enumerated criteria
          • tests: program -> orgUnit, article -> workflow
        • Do not add corresponding facet in Result tab
        • The Search form is OK
        • Select a value for the enumerated criteria and click on search button
          • an error occurs => KO

      Here is the error stack trace:
       

      Thrown:
      org.ametys.web.frontoffice.search.requesttime.impl.InvalidUserInputException: At least one of the user input facets is invalid because it was not declared by the service instance.
      at org.ametys.web.frontoffice.search.requesttime.impl.FacetSearchComponent.checkValidInputs(FacetSearchComponent.java:90)
      at org.ametys.web.frontoffice.search.requesttime.impl.FacetSearchComponent.execute(FacetSearchComponent.java:60)
      at org.ametys.web.frontoffice.search.requesttime.SearchServiceGenerator.generate(SearchServiceGenerator.java:166)
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)

       

            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: