[MGNLRES-166] Clicking on a node with "wrong" node type on resources app may crash the whole (vaadin) application Created: 09/Jun/15  Updated: 05/May/22  Resolved: 05/May/22

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

Type: Bug Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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
Team: Nucleus

 Description   

If you have a node as /my-module/js/my-script ...
... and the nodes /my-module and/or /my-module/js are of "wrong type" (means: NOT node type "folder") ...
LayeredOrigin#newLayeredResourcePath throws a IllegalStateException which may completely crash the Vaadin application.

The resources app prbly. should catch / handle such exception to avoid the vaadin application crash.


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