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

Error when selecting "Aucun" for content type in search

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.10, 4.6.0
    • None
    • None
    • None
    • 4.5.9 and nightly
    • 4.6 M5

      How to reproduce : 

      In search, select "Aucun" for content type

      When clicking on Enter following frame is displayed :

      Following log is present : 

      java.lang.IllegalArgumentException: The value null for criterion contentTypes is not a valid String[] values.
      at org.ametys.cms.search.systemprop.AbstractSystemProperty#parseStringArray:597
      at org.ametys.cms.search.systemprop.ContentTypeSystemProperty#getQuery:114
      at org.ametys.cms.search.ui.model.impl.SystemSearchUICriterion#getQuery:298
      at org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition#getEmptyValueQuery:111
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#_queryOnCriterion:372
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#_queryFromTransformedValAndRealOperator:339
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#lambda$singleCriterionToQuery$5:313
      at org.ametys.cms.search.advanced.TreeMaker#toQuery:168
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#singleCriterionToQuery:323
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#lambda$buildQuery$4:275
      at org.ametys.cms.search.advanced.AdvancedQueryBuilder#lambda$build$0:50
      at org.ametys.cms.search.advanced.AbstractTreeNode#walk:55
      at org.ametys.cms.search.advanced.AbstractTreeNode#lambda$walk$0:63
      at java.base/java.util.stream.ReferencePipeline$3$1#accept:197
      at java.base/java.util.ArrayList$ArrayListSpliterator#forEachRemaining:1625
      at java.base/java.util.stream.AbstractPipeline#copyInto:509
      at java.base/java.util.stream.AbstractPipeline#wrapAndCopyInto:499
      at java.base/java.util.stream.ReduceOps$ReduceOp#evaluateSequential:921
      at java.base/java.util.stream.AbstractPipeline#evaluate:234
      at java.base/java.util.stream.ReferencePipeline#collect:682
      at org.ametys.cms.search.advanced.AdvancedQueryBuilder#_logicalQuery:57
      at org.ametys.cms.search.advanced.AdvancedQueryBuilder#lambda$build$1:52
      at org.ametys.cms.search.advanced.AbstractTreeNode#walk:65
      at org.ametys.cms.search.advanced.AdvancedQueryBuilder#build:48
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#buildQuery:276
      at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable#buildQuery:513
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#lambda$getCriterionTreeQuery$0:137
      at java.base/java.util.stream.ReferencePipeline$3$1#accept:197
      at java.base/java.util.ArrayList$ArrayListSpliterator#forEachRemaining:1625
      at java.base/java.util.stream.AbstractPipeline#copyInto:509
      at java.base/java.util.stream.AbstractPipeline#wrapAndCopyInto:499
      at java.base/java.util.stream.ReduceOps$ReduceOp#evaluateSequential:921
      at java.base/java.util.stream.AbstractPipeline#evaluate:234
      at java.base/java.util.stream.ReferencePipeline#collect:682
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper#getCriterionTreeQuery:138
      at org.ametys.web.frontoffice.search.requesttime.impl.CriterionTreeSearchComponent#execute:57
      at org.ametys.web.frontoffice.search.requesttime.SearchServiceGenerator#generate:174

       

       

            bmaurel Bérénice Maurel
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: