-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.3.X, 7.4.13 DXP U5
-
Component/s: Search Experiences > Blueprints
-
Branch Version/s:7.3.x
-
Backported to Branch:Committed
-
Fix Priority:4
-
Epic Link:
-
Git Pull Request:
-
QA Test Name:
-
Quality Gate:Upstream Test Analysis
Steps to reproduce:
- 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.
- Note: without this, there is no indication currently about the reason why the element was ignored after
- Create a blueprint
- Add any of the following elements
- Boost Contents in a Category for a User Segment (user.active_segment_entry_ids, Use-case:
LPS-125839) - Boost Contents in a Category for a Period of Time (time.current_date, Use-case:
LPS-125838) - Boost Contents in a Category for the Time of Day (time.current_date, Use Case)
- Staging Aware (context.is_staging_group)
- Limit Search to the Current Site (context.scope_group_id)
- Boost Contents in a Category for a User Segment (user.active_segment_entry_ids, Use-case:
- 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
- depends on
-
LPS-144055 Ignore processing an element in case of unresolved parameter values in template variables or conditions
-
- Closed
-
-
LPS-144208 Resolve parameters: user.active_segment_entry_ids, context.scope_group_id
-
- Closed
-
-
LPS-144362 Resolve parameter: time.current_date (Blueprint Preview)
-
- Closed
-
-
LPS-145411 Resolve parameter: context.is_staging_group
-
- Closed
-
- Discovered while testing
-
LPS-143572 NullPointerException within SXPConditionEvaluator when searching within Blueprints Preview
- Closed