[MGNLUI-3914] HierarchicalJcrContainer#getParent(Object) tries to determine parent of root node resulting in log messages Created: 15/Jun/16  Updated: 05/Dec/16  Resolved: 16/Nov/16

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.4.6
Fix Version/s: 5.4.10, 5.5.1

Type: Bug Priority: Neutral
Reporter: Philip Mundt Assignee: Ilgun Ilgun
Resolution: Fixed Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLUI-3889 ExpandNodeAction is flooding log with... Closed
duplicates MGNLUI-3874 Firing ContentChangeEvent on the root... 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
Sprint: Basel 70
Story Points: 1

 Description   

info.magnolia.ui.workbench.tree.HierarchicalJcrContainer#getParent(Object) tries to determine the parent of a passed root node, resulting in an unnecessary log statement (due to exception).

[INFO] [talledLocalContainer] 2016-06-14 19:44:40,301 WARN  agnolia.ui.workbench.tree.HierarchicalJcrContainer: Cannot determine parent for itemId: info.magnolia.ui.vaadin.integration.jcr.JcrNodeItemId@2b88f047: javax.jcr.ItemNotFoundException: Root node doesn't have a parent

How to reproduce

  1. Goto security app
  2. Edit role's "web access"
  3. Save

See four statements like:

[INFO] [talledLocalContainer] 2016-09-27 13:03:55,248 WARN  agnolia.ui.workbench.tree.HierarchicalJcrContainer: Cannot determine parent for itemId: info.magnolia.ui.vaadin.integration.jcr.JcrNodeItemId@2b88f047: javax.jcr.ItemNotFoundException: Root node doesn't have a parent
[INFO] [talledLocalContainer] 2016-09-27 13:03:55,255 WARN  agnolia.ui.workbench.tree.HierarchicalJcrContainer: Cannot determine parent for itemId: info.magnolia.ui.vaadin.integration.jcr.JcrNodeItemId@2b88f047: javax.jcr.ItemNotFoundException: Root node doesn't have a parent
[INFO] [talledLocalContainer] 2016-09-27 13:03:55,262 WARN  agnolia.ui.workbench.tree.HierarchicalJcrContainer: Cannot determine parent for itemId: info.magnolia.ui.vaadin.integration.jcr.JcrNodeItemId@51e8122: javax.jcr.ItemNotFoundException: Root node doesn't have a parent
[INFO] [talledLocalContainer] 2016-09-27 13:03:55,290 WARN  agnolia.ui.workbench.tree.HierarchicalJcrContainer: Cannot determine parent for itemId: info.magnolia.ui.vaadin.integration.jcr.JcrNodeItemId@2b88f047: javax.jcr.ItemNotFoundException: Root node doesn't have a parent

Generated at Mon Feb 12 09:11:23 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.