-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
None
-
4.6 M3
The search searvice is configured with a tags criteria with a value to select among a tag's category
Thrown: java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:208) at java.base/java.util.Arrays$ArrayList.<init>(Arrays.java:4137) at java.base/java.util.Arrays.asList(Arrays.java:4122) at org.ametys.cms.search.query.TagQuery.<init>(TagQuery.java:98) at org.ametys.cms.search.systemprop.TagsSystemProperty.getQuery(TagsSystemProperty.java:112) at org.ametys.cms.search.ui.model.impl.SystemSearchUICriterion.getQuery(SystemSearchUICriterion.java:298) at org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition.getEmptyValueQuery(ContentSearchCriterionDefinition.java:111) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryOnCriterion(SearchComponentHelper.java:371) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryFromTransformedValAndRealOperator(SearchComponentHelper.java:339) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.lambda$8(SearchComponentHelper.java:313)
If the criteria is tags without restriction on tags' category, it is ok.
[CMS-11276] FO search failed with a criteria on tags
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Description |
Original:
!image-2022-06-23-16-06-46-242.png|thumbnail!
{noformat} Thrown: java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:208) at java.base/java.util.Arrays$ArrayList.<init>(Arrays.java:4137) at java.base/java.util.Arrays.asList(Arrays.java:4122) at org.ametys.cms.search.query.TagQuery.<init>(TagQuery.java:98) at org.ametys.cms.search.systemprop.TagsSystemProperty.getQuery(TagsSystemProperty.java:112) at org.ametys.cms.search.ui.model.impl.SystemSearchUICriterion.getQuery(SystemSearchUICriterion.java:298) at org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition.getEmptyValueQuery(ContentSearchCriterionDefinition.java:111) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryOnCriterion(SearchComponentHelper.java:371) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryFromTransformedValAndRealOperator(SearchComponentHelper.java:339) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.lambda$8(SearchComponentHelper.java:313) {noformat} |
New:
The search searvice is configured with a tags criteria with a value to select among a tag's category
!screenshot-1.png|thumbnail! {noformat} Thrown: java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:208) at java.base/java.util.Arrays$ArrayList.<init>(Arrays.java:4137) at java.base/java.util.Arrays.asList(Arrays.java:4122) at org.ametys.cms.search.query.TagQuery.<init>(TagQuery.java:98) at org.ametys.cms.search.systemprop.TagsSystemProperty.getQuery(TagsSystemProperty.java:112) at org.ametys.cms.search.ui.model.impl.SystemSearchUICriterion.getQuery(SystemSearchUICriterion.java:298) at org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition.getEmptyValueQuery(ContentSearchCriterionDefinition.java:111) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryOnCriterion(SearchComponentHelper.java:371) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryFromTransformedValAndRealOperator(SearchComponentHelper.java:339) at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.lambda$8(SearchComponentHelper.java:313) {noformat} If the criteria is tags without restriction on tags' category, it is ok. !screenshot-2.png|thumbnail! |
Attachment | New: screenshot-2.png [ 25383 ] |
Attachment | New: screenshot-1.png [ 25382 ] |
Rank | New: Ranked higher |
Rank | New: Ranked higher |
Rank | New: Ranked higher |
Rank | New: Ranked higher |