[MGNLPN-774] personalization-samples .. segments.Economic-regions.xml creates ClassNotFound error Created: 09/Jan/24  Updated: 17/Jan/24  Resolved: 10/Jan/24

Status: Closed
Project: Magnolia Personalization
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Story Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Resolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3.5h
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLEE-838 dx-core-test-webapps should not throw... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Work Started:

 Description   

Context

In p13n 3.0 - the bootstrap file segments.Economic-regions.xml
refers to class info.magnolia.personalization.geoip.CountryVoter, which is an "old" trait/voter.

This bootstrap requires the moduleĀ magnolia-personalization-compatibility in the bundle - otherwise ClassNotFoundExceptions exceptions are thrown on server-startup, furthermore the segments-app will throw errors as well.

That boostrap's exact location is personalization/magnolia-personalization-samples/src/main/resources/mgnl-bootstrap-samples/personalization-samples/personalization-segmentation-app/segments.Economic-regions.xml
magnolia-personalization-samples is added as dependency on magnolia-dx-core-webapp

magnolia-dx-core-webapp::6.3 does not contain the magnolia-personalization-compatibility - thus this webapp comes with errors.
(Same is true for dx-core-test-webapp ... which made me file the ticket)

Fix

The bootstrap segments.Economic-regions.xml - as it is now - it should be removed.

Adding other segments - without traits - likely doesn't make much sense.
("New" traits can be defined now in light-modules. magnolia-dx-core-webapp does not contain LMs with default traits afaik - hence it does not seem feasible to add segments-samples ... or they would need to be specified.)


Generated at Mon Feb 12 06:40:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.