You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/07/08 11:34:10 UTC

[jira] [Resolved] (TOMEE-1862) TomcatWebAppBuilder: no need to track contextXml inputstream

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

Romain Manni-Bucau resolved TOMEE-1862.
---------------------------------------
    Resolution: Fixed

> TomcatWebAppBuilder: no need to track contextXml inputstream
> ------------------------------------------------------------
>
>                 Key: TOMEE-1862
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1862
>             Project: TomEE
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.2
>
>
> From the list (thanks Svetlin Zarev):
> {code}
> Hi,
> TomcatWebappDeployer::deployWebApps() does not close the InputStream to the
> context.xml it opens.It opens the stream on line 462 or 471 (branch 7.0.1)
> , an uses it only to check if it's null on line 500 without ever reading
> it.
> Leaving the stream open may cause application undeployment issues, because
> the users will not be able to delete the WAR/or the context.xml from the FS
> on operation systems like windows that lock the file if there are open
> handles to it.
> Kind regards,
> Svetlin
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)