Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-597

RequestParameterTrait is not working RequestScoped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Traits
    • None

      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

        Acceptance criteria

              Unassigned Unassigned
              tobias.kerschbaum Tobias Kerschbaum
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD