[MGNLFORM-327] Simple form depends on subchild even when it is not configured in the form Created: 21/Aug/20  Updated: 16/Aug/22

Status: Open
Project: Magnolia Form Module
Component/s: None
Affects Version/s: 2.5.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
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: AuthorX Support
Team: AuthorX

 Description   

The issue comes up when the child subpage has rendering errors, for instance, in the example attached, the related template no longer exists.

Steps to reproduce:
1. Import the attached content into pages app.
2. Configure Mail module to be able to send emails
3. open rootPage and try to send the form.
4. Error related to broken:

info.magnolia.config.registry.Registry$NoSuchDefinitionException: mtk:components/old-non-existing-template
	info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:127)	info.magnolia.module.form.templates.components.multistep.NavigationUtils.isParagraphOfType(NavigationUtils.java:119)	info.magnolia.module.form.templates.components.multistep.NavigationUtils.findParagraphOfType(NavigationUtils.java:102)	info.magnolia.module.form.templates.components.multistep.NavigationUtils.findParagraphOfType(NavigationUtils.java:105)
info.magnolia.module.form.templates.components.multistep.NavigationUtils.findFirstPageWithParagraphOfType(NavigationUtils.java:85)info.magnolia.module.form.templates.components.multistep.StartStepFormEngine.getNextPage(StartStepFormEngine.java:126)info.magnolia.module.form.engine.FormEngine.getValidationSuccessfulView(FormEngine.java:292)	info.magnolia.module.form.engine.FormEngine.processSubmission(FormEngine.java:224)
	info.magnolia.module.form.engine.FormEngine.handleRequest(FormEngine.java:151)

Current behaviour:
An error 500 comes up.

Expected behaviour
Since the page is not referenced anywhere in the form, no errors should be thrown.

Workaround
Fixing subpage error



 Comments   
Comment by Marek Lesiak [ 02/Mar/21 ]

Hi, any information about that?

Generated at Mon Feb 12 05:39:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.