struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Francois Pirus (JIRA)" <>
Subject [jira] [Commented] (WW-4948) Struts 2.5.16 is creating jar_cache files in temp folder
Date Sun, 02 Sep 2018 23:50:00 GMT


Jean-Francois Pirus commented on WW-4948:

As mentioned by [~drajagopalan], the code in is the source of
the problem:

It calls deleteOnExit, which is only called when the JVM EXITS. Which means it will accumulate
jar_cache files of size 1.6M for every new Struts session, until you fill up you disk partition
and die.
JarFile jarFile = new JarFile(tmpFile.toFile(), true, JarFile.OPEN_READ);

> Struts 2.5.16 is creating jar_cache files in temp folder 
> ---------------------------------------------------------
>                 Key: WW-4948
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Dhinakar
>            Priority: Critical
>             Fix For: 2.6
> struts latest version 2.5.16 is creating temp files jar_cache in tmp folder. It seems
Struts 2.5.16 is having some logic to create jar cache files every time it is loading any
struts action from a jar file . Can you please check?

This message was sent by Atlassian JIRA

View raw message