[CAMPMAN-31] Preview as visitor broken in headless scenario Created: 18/Nov/21  Updated: 07/Feb/22  Resolved: 07/Feb/22

Status: Closed
Project: Campaign Manager
Component/s: None
Affects Version/s: 3.1.6
Fix Version/s: None

Type: Bug Priority: High
Reporter: Tobias Kerschbaum Assignee: Teresa Miyar
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-11-18-17-01-55-053.png    
Issue Links:
relation
is related to MGNLREST-338 References to content in workspaces s... Closed
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
Date of First Response:

 Description   

Steps to reproduce

  1. Install Campaign Manager 3.1.6
  2. Create a test Campaign
  3. Try to receive it in a headless scenario with the CampaignReferenceResolver

Expected results

I want to receive my configured campaign.

Actual results

I always get the default campaign

Workaround

NOT AN ISSUE Add access to anonymous to referenced workspace, otherwise references are not resolved.

Development notes

The problem is that in this Line a NPE is thrown:
https://git.magnolia-cms.com/projects/ENTERPRISE/repos/personalization/browse/magnolia-personalization-core/src/main/java/info/magnolia/personalization/trait/storage/StorageAwareTraitCollector.java#53
Stacktrace:



 Comments   
Comment by Teresa Miyar [ 07/Feb/22 ]

NOT AN ISSUE Add access to anonymous to referenced workspace, otherwise references are not resolved.

Generated at Sun Feb 11 23:55:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.