Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-144193

Some Elements throwing "IllegalArgumentException: Invalid parameter name" errors

    Details

    • QA Test Name:
    • Quality Gate:
      Upstream Test Analysis

      Description

      Steps to reproduce:

      1. Within Server Administration, add WARN log levels for com.liferay.search.experiences.rest.internal.resource.v1_0.SearchResponseResourceImpl
        • Note: without this, there is no indication currently about the reason why the element was ignored after LPS-143391. Will be addressed in a future version.
      2. Create a blueprint
      3. Add any of the following elements
        1. Boost Contents in a Category for a User Segment (user.active_segment_entry_ids, Use-case: LPS-125839)
        2. Boost Contents in a Category for a Period of Time (time.current_date, Use-case: LPS-125838)
        3. Boost Contents in a Category for the Time of Day (time.current_date, Use Case)
        4. Staging Aware (context.is_staging_group)
        5. Limit Search to the Current Site (context.scope_group_id)
      4. Perform a search either within the Blueprint preview or Search page

      Result: the search fails and errors are thrown in the console. Example error snippet for "Boost Contents in a Category for a User Segment":

      Suppressed: java.lang.IllegalArgumentException: Invalid parameter name user.active_segment_entry_ids
      	at com.liferay.search.experiences.internal.blueprint.condition.SXPConditionEvaluator._getSXPParameter(SXPConditionEvaluator.java:171)
      	at com.liferay.search.experiences.internal.blueprint.condition.SXPConditionEvaluator._evaluateContains(SXPConditionEvaluator.java:90)
      	at com.liferay.search.experiences.internal.blueprint.condition.SXPConditionEvaluator.evaluate(SXPConditionEvaluator.java:44)
      	at com.liferay.search.experiences.internal.blueprint.search.request.body.contributor.QuerySXPSearchRequestBodyContributor._evaluate(QuerySXPSearchRequestBodyContributor.java:109)
      	at com.liferay.search.experiences.internal.blueprint.search.request.body.contributor.QuerySXPSearchRequestBodyContributor._processQueryEntry(QuerySXPSearchRequestBodyContributor.java:168)
      	... 119 more
      

      See attached file for full stacktrace: error.log

      Tested on:
      Portal master git commit a3a615adb4df920316561cec06558676c7e94377

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.chong Joshua Chong
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Engineering Assignee:
              Tibor Lipusz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                23 weeks, 4 days ago

                  Packages

                  Version Package
                  7.3.X
                  7.4.13 DXP U5