[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: |
|
||||||||
| Issue Links: |
|
||||||||
| 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: | |||||||||
| 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. |