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

Search filter - criteria with a user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.4, 4.7.17, 4.9.0
    • 4.6.0
    • None
    • None

      How to reproduce : 

      Note : seen on demo and intranet. 

      1 - Create a search filter with following criteria : 

      2 - When displaying, filter enable to enter a text (and not selecting a user).

      When entering a text, following error is encountered :

      Date: Thu Dec 15 15:43:12 CET 2022 (1671115392036)
      Thread: http-nio-10016-exec-10
      Message #: 43655
      Level: ERROR
      NDC: 
      Category: org.ametys.web.frontoffice.search
      Message: An error occured while executing search component 'org.ametys.web.frontoffice.search.requesttime.impl.CriterionTreeSearchComponent' for request '4c7f9391'. Other components will be executed but the result can be inconsistent
      Location: org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Thrown:
      java.lang.IllegalArgumentException: The value mag for criterion firstValidator is not a valid UserIdentity values.
      at org.ametys.cms.search.systemprop.AbstractSystemProperty.parseUserArray(AbstractSystemProperty.java:309)
      at org.ametys.cms.search.systemprop.AbstractUserSystemProperty.getQuery(AbstractUserSystemProperty.java:43)
      at org.ametys.cms.search.ui.model.impl.SystemSearchUICriterion.getQuery(SystemSearchUICriterion.java:256)
      at org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition.getQuery(ContentSearchCriterionDefinition.java:105)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryOnCriterion(SearchComponentHelper.java:424)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper._queryFromTransformedValAndRealOperator(SearchComponentHelper.java:388)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.lambda$11(SearchComponentHelper.java:362)
      at org.ametys.cms.search.advanced.TreeMaker.toQuery(TreeMaker.java:168)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.singleCriterionToQuery(SearchComponentHelper.java:372)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.lambda$10(SearchComponentHelper.java:324)
      at org.ametys.cms.search.advanced.AdvancedQueryBuilder.lambda$0(AdvancedQueryBuilder.java:49)
      at org.ametys.cms.search.advanced.AbstractTreeNode.walk(AbstractTreeNode.java:55)
      at org.ametys.cms.search.advanced.AdvancedQueryBuilder.build(AdvancedQueryBuilder.java:47)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.buildQuery(SearchComponentHelper.java:325)
      at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable.buildQuery(AbstractContentBasedSearchable.java:488)
      at org.ametys.web.frontoffice.search.requesttime.impl.SearchComponentHelper.lambda$0(SearchComponentHelper.java:138)

            Unassigned Unassigned
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: