[MGNLETK-8] Passing NodeData as a parameter to image generation job causes attempt to access the node data after session is closed Created: 11/Aug/09  Updated: 03/Jul/14  Resolved: 04/Sep/09

Status: Closed
Project: Extended Templating Kit (closed)
Component/s: None
Affects Version/s: 1.1.1
Fix Version/s: 1.1.2

Type: Bug Priority: Major
Reporter: Jan Haderka Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File stacktrace.txt    
Issue Links:
duplicate
duplicates MGNLIMG-59 Can't expire image generation jobs, t... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Can be reproduced for example by accessing versioned content like http://localhost:8080/magnoliaAuthor/demo-project.html?mgnlVersion=1.0
The problem doesn't occur always, but can be reproduced frequently specially if there is not high load on the server and sessions get closed quite quickly.
Attached stacktrace.
The problem occurs due to passing NodeData in STKParameterProvider as part of the STKParameter. Since the image generation is off loaded to separate thread and JCR sessions are kept alive per thread the NodeData and Content should never be passed around this way.



 Comments   
Comment by Magnolia International [ 04/Sep/09 ]

fixed my MGNLIMG-59 (magnolia-module-imaging-2.0.2)

Generated at Mon Feb 12 01:47:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.