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
- Est dupliqué par
-
CMS-11322 Error when using "None" criteria
- Closed