[CONTEDIT-554] Continuously getting error in log when creating new content item with tag Created: 12/Jan/23  Updated: 04/Jul/23  Resolved: 28/Jun/23

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.4, 2.2.0, 2.1.6

Type: Bug Priority: Major
Reporter: Viet Nguyen Assignee: Quach Hao Thien
Resolution: Done Votes: 0
Labels: Nucleus_AuthX_Support, VN-Maintenance
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 3d 7.5h Time Spent: 3d 7.5h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: Text File error.log     Zip Archive zugs.zip    
Issue Links:
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
CONTEDIT-555 Implementation Sub-task Completed Quach Hao Thien  
CONTEDIT-556 Review Sub-task Closed Antonín Juran  
CONTEDIT-557 PreintQA Sub-task Closed Antonín Juran  
CONTEDIT-558 QA Sub-task Completed Adam Siska  
CONTEDIT-559 Reconsider adding regression test Sub-task Completed Adam Siska  
CONTEDIT-560 Revert at release/2.0 branch Sub-task Completed Quach Hao Thien  
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
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Testcase included:
Yes
Release notes required:
Yes
Date of First Response:
Epic Link: AuthorX Support
Sprint: Nucleus 39
Story Points: 3
Team: AuthorX
Work Started:
Approved:
Yes

 Description   

Steps to reproduce

  1.  Configure content tagging for a new workspace follow our documentation in How to enable content tags for a content app
  2.  Register it as taggable workspace
  3. Create a new item and save it.
  4. Check the log to find the error javax.jcr.PathNotFoundException: /untitled/mgnl:tags and also WARN org.apache.jackrabbit.core.SessionImpl : Unclosed session detected...

.. Logs, screenshots, gifs...

Expected results

  • Do not process the case of newly created node so that the error and warning should not happen.

.. Justify non-trivial expectations with a link to a doc or a relevant discussion.

Actual results

  • Logs may flood the console and producing high load to server logging system.

Workaround

  • N/A

Development notes

  • Please note that not always a newly created node named "untitled", sometimes it is "untitled0|1|2".
  • Error definitely happen at info.magnolia.contenttags.TagsModule.lambda$null$1(TagsModule.java:139) within the observation.
  • Would be better if we can re-architect the mechanism to get rid of such observation on creating node, but after saving node when we have the content node created successfully already.
  • Reference to attached error log for an example. Also usecase verified from related ticket.


 Comments   
Comment by Quach Hao Thien [ 14/Jun/23 ]

Discovery

Issue doesn't happen on DetailSupApp - verified with the bookshelf lm in tutorial https://docs.magnolia-cms.com/product-docs/6.2/Developing/Development-how-tos/How-to-define-JCR-node-types-and-workspaces.html

This issue happens on ContentEditorDetailSubApp

Steps to reproduce:

  1. Add this light module to your instance zugs.zip
  2. Register it as taggable workspace
  3. Create a new item and save it.
  4. Check the log to find the error javax.jcr.PathNotFoundException

Development note:

Generated at Mon Feb 12 00:21:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.