[MAGNOLIA-7855] NoSuchDefinitionException when deleting a page, deleted content template is not correctly registered Created: 28/Jul/20  Updated: 19/Nov/20  Resolved: 29/Jul/20

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

Type: Bug Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File MAGNOLIA-7855stacktrace.txt    
Issue Links:
duplicate
duplicates PAGES-311 Exception is thrown when delete page 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   

Seen on 6.2.3 CE (Snapshot: 2020.07.20 22:11:50).

Steps to reproduce

1) Open Pages app.

2) In root (but works also in subs), create a new page using the Basic template, no need to set anything else but the page name. (Other templates also seem to throw the same error.)

3) Delete the page. The errors are written to the console immediately after confirming the yellow deletion alert.

 Stacktrace: MAGNOLIA-7855stacktrace.txt



 Comments   
Comment by Martin Drápela [ 29/Jul/20 ]

See PAGES-311.

Comment by Simon Tourville [ 19/Nov/20 ]

Hi,

We get this exact error in same conditions (6.2.4 DX).

Any ways to avoid this error? I've been looking into thos 2-3 tickets and found no explanation.

Thanks


2020-11-19 14:25:12,303 ERROR signment.MetaDataBasedTemplateDefinitionAssignment: Deleted content template is not correctly registered.
info.magnolia.registry.RegistrationException: adminInterface:mgnlDeleted
at info.magnolia.rendering.template.registry.TemplateDefinitionRegistry.getTemplateDefinition(TemplateDefinitionRegistry.java:129) ~[magnolia-rendering-6.2.4.jar:?]
at info.magnolia.rendering.template.assignment.MetaDataBasedTemplateDefinitionAssignment.getAvailableTemplates(MetaDataBasedTemplateDefinitionAssignment.java:137) ~[magnolia-rendering-6.2.4.jar:?]
at info.magnolia.pages.app.data.PageTemplateDataProvider.lambda$new$0(PageTemplateDataProvider.java:60) ~[magnolia-pages-app-6.2.4.jar:?]
at info.magnolia.ui.ValueContext.lambda$observe$2(ValueContext.java:86) ~[magnolia-ui-framework-6.2.4.jar:?]
at info.magnolia.ui.framework.ContextProperty$Impl.lambda$observe$5(ContextProperty.java:195) ~[magnolia-ui-framework-6.2.4.jar:?]

Generated at Mon Feb 12 04:27:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.