[ 
https://issues.apache.org/jira/browse/COCOON-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Graham Triggs updated COCOON-2303:
----------------------------------

    Attachment: sitemap.diff

> ThreadLocal in Sitemap EnvironmentHelper leaks on application undeployment
> --------------------------------------------------------------------------
>
>                 Key: COCOON-2303
>                 URL: https://issues.apache.org/jira/browse/COCOON-2303
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Components: Sitemap
>    Affects Versions: 2.2
>            Reporter: Graham Triggs
>         Attachments: sitemap.diff
>
>
> In sitemap-impl, there is a ThreadLocal that is used to store the 
> EnvironmentStack. In the call to leaveProcessor, it pops an EnvironmentInfo 
> off the stack. However, it doesn't clear the ThreadLocal when the stack is 
> emptied. As such, there is a reference left over that can't be cleared 
> normally when the application is undeployed.
> Patch clears the environmentStack ThreadLocal when the stack is empty (it 
> will get recreated anyway in the enterProcessor if it's required later).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to