Uploaded image for project: 'Extended Templating Kit (closed)'
  1. Extended Templating Kit (closed)
  2. MGNLETK-8

Passing NodeData as a parameter to image generation job causes attempt to access the node data after session is closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.2
    • 1.1.1
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                had Jan Haderka
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: