[jira] [Updated] (COCOON-2304) ThreadLocal in Rhino context is not always cleared
Cédric Damioli (Jira) <[email protected]> Thu, 30 Nov 2023 13:46:00 +0000 (UTC)
| Newsgroups | gmane.text.xml.cocoon.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/COCOON-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cédric Damioli updated COCOON-2304:
-----------------------------------
Fix Version/s: 2.3.1
(was: 2.3.0)
> ThreadLocal in Rhino context is not always cleared
> --------------------------------------------------
>
> Key: COCOON-2304
> URL: https://issues.apache.org/jira/browse/COCOON-2304
> Project: Cocoon
> Issue Type: Bug
> Components: - Flowscript
> Reporter: Graham Triggs
> Priority: Major
> Fix For: 2.3.1
>
> Attachments: flowscript.diff
>
>
> The Mozilla Rhino Context isn't exited in all cases in FOM_JavascriptInterpreter. This can lead to a leak on application undeployment, with the ThreadLocal references inside.
> Patch restructures the code slightly to use try { } finally { } blocks to ensure the Context.exit() is called where appropriate (this makes the patch look bigger than it really is, due to indenting).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)