[PAGES-830] Check the AbstractMethodError from isAvailable method in NorsuTemplateAssignment Created: 06/Sep/22  Updated: 19/Oct/22  Resolved: 19/Oct/22

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Bug Priority: Minor
Reporter: Andrei Ichimescu Assignee: Andrei Ichimescu
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image (2).png    
Issue Links:
Problem/Incident
is caused by PAGES-806 [SaaS] Adapt the pages module after m... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Post TPR. SaaS Norsu Pages
Team: AuthorX

 Description   

Current implementation of the NorsuTemplateAssignment.isAvailable method catches the AbstractMethodError and if so it returns false.

Check if the AbstractMethodError is really needed in this place.

NorsuTemplateAssignment is only instantiated in the pages-app (norsu variant), otherwise the default implementation (info.magnolia.rendering.template.assignment.MetaDataBasedTemplateDefinitionAssignment) is being used.

TemplateAvailability is widely used (not only site module) , see attachment.
SiteAwareTemplateAvailability is a singleton, see if this can cause trouble since we need to support both the jcr and the norsu at the same time


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