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

FO search failed with a criteria on tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.6.0
    • None
    • Plugin : Search
    • 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.

        1. image-2022-06-23-16-06-46-242.png
          24 kB
          Laurence Aumeunier
        2. screenshot-1.png
          24 kB
          Laurence Aumeunier
        3. screenshot-2.png
          24 kB
          Laurence Aumeunier

            cedric Cédric Damioli
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: