[MGNLPN-597] RequestParameterTrait is not working RequestScoped Created: 19/Oct/21  Updated: 26/Aug/22

Status: Open
Project: Magnolia Personalization
Component/s: Traits
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Tobias Kerschbaum Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: AuthorX Maintenance
Team: AuthorX

 Description   

Affected Version is  2.1.0 (can't choose it in the form)

Steps to reproduce

  1.  Define a basic requestParameterTrait via Light-Development as documented below
  2. Add a component Variant with the value for the googleCampaign trait 123
  3. Test the behaviour once with RequestScopedTraitStorage and once with SessionScopedTraitStorage
<light-module-name>/traits/googleCampaign.yaml

$type: requestParameterTrait
ruleField:   
  $type: textField  
  name: value
valueField:  
  $type: textField
traitStorageClass: info.magnolia.personalization.trait.storage.StorageAwareTraitCollector$RequestScopedTraitStorage

Expected results

Whether with session or request based storage, the right variant should be displayed.

Actual results

During my local test, it only worked when I chose the session based variant.

Workaround

Development notes


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