[ABTEST-169] ABTestFilter does not redirect to a variant Created: 19/Mar/20  Updated: 23/Jul/20  Resolved: 22/Jul/20

Status: Closed
Project: A/B Testing
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0

Type: Bug Priority: Neutral
Reporter: Andrei Ichimescu Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to ABTEST-209 Move ABTest variants into website repo Closed
dependency
depends upon ABTEST-46 #09 New Test. Edit variant 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:
Epic Link: ABTEST MVP
Sprint: Add-Ons 34, Add-Ons 38, Add-Ons 39, Add-Ons 40, Add-Ons 41, Add-Ons 42
Story Points: 3

 Description   

Even though the dispatching mechanism works as expected, the ABTestFilter does not redirect the user to the variant .
Instead of the variant page, the user will see the following error message:
"Oops, the page you have requested is not available. Either its URL is incorrect or the page is not available on this channel, i.e. you are looking at it on a desktop browser, but the page is only served on the smartphone channel."

Technical details:
setting the variant as the main contentNode in the aggregationStateProvider does not work as expected aggregationStateProvider.get().setMainContentNode(dispatchedVariant);



 Comments   
Comment by Laura Delnevo [ 02/Apr/20 ]

Depends on POC (PR in ABTEST-46)

Comment by Milan Divilek [ 21/Jul/20 ]

Reopen: 


Caused by: java.lang.RuntimeException: Cannot find original variant with name: variant A
 at info.magnolia.abtesting.variant.summary.OriginalVariantSummaryContainer.lambda$getVariantSummaryList$0(OriginalVariantSummaryContainer.java:43) ~[magnolia-abtesting-1.0-SNAPSHOT.jar:?]
 at java.util.Optional.orElseThrow(Optional.java:290) ~[?:1.8.0_201]
 at info.magnolia.abtesting.variant.summary.OriginalVariantSummaryContainer.getVariantSummaryList(OriginalVariantSummaryContainer.java:43) ~[magnolia-abtesting-1.0-SNAPSHOT.jar:?]
Generated at Sun Feb 11 22:53:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.