/var/lib/tomcat6/temp directory could be cleaned up at each tomcat6 restart

Bug #287452 reported by Thierry Carrez on 2008-10-22
2
Affects Status Importance Assigned to Milestone
tomcat6 (Ubuntu)
Low
Thierry Carrez

Bug Description

Binary package hint: tomcat6

Tomcat 5.5 packages clean up the JVM temp directory (/var/lib/tomcat5.5/temp) at each tomcat 5.5 startup.
To have that directory cleaned up sometimes in Tomcat 6, we should do the same.

Thierry Carrez (ttx) on 2008-10-22
Changed in tomcat6:
importance: Undecided → Low
status: New → Triaged
Thierry Carrez (ttx) wrote :

Steve Langasek reminded me of the following:
Shouldn't tomcat be using something other than /var/lib for a temp directory? This is an FHS violation, and is inconsistent with things like backup policies that try to avoid temp files.

Rather than cleaning up a static directory at each restart, creating (safely) a /tmp/tomcat.XXXX and setting it as the jvm TMPDIR at each restart might be cleaner.

Thierry Carrez (ttx) on 2008-11-24
Changed in tomcat6:
assignee: nobody → tcarrez
status: Triaged → In Progress
Thierry Carrez (ttx) wrote :

Temporary directory moved by default to /tmp/tomcat6-temp, with a parameter to change its location.

Fix included in proposed new version @
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/294277/comments/4

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tomcat6 - 6.0.18-0ubuntu4

---------------
tomcat6 (6.0.18-0ubuntu4) jaunty; urgency=low

  * tomcat6.init, tomcat6.postinst, tomcat6.dirs, tomcat6.default,
    README.debian: Use /tmp/tomcat6-temp instead of /var/lib/tomcat6/temp as
    the JVM temporary directory and clean it at each restart (LP: #287452)
  * policy/04webapps.policy: add rules to allow usage of java.io.tmpdir
  * tomcat6.init, rules: Do not use TearDown, as this results in
    LifecycleListener callbacks in webapps being bypassed (LP: #299436)
  * rules: Compile at Java 1.5 level to allow usage of Java 5 JREs
    (LP: #286427)
  * control, rules, libservlet2.5-java-doc.install,
    libservlet2.5-java-doc.links: New libservlet2.5-java-doc package ships
    missing Servlet/JSP API documentation (LP: #279645)
  * patches/use-commons-dbcp.patch: Change default DBCP factory class
    to org.apache.commons.dbcp.BasicDataSourceFactory (LP: #283852)
  * tomcat6.dirs, tomcat6.postinst, default_root/index.html: Create
    Catalina/localhost in /etc/tomcat6 and make it writeable by the tomcat6
    group, so that autodeploy and admin webapps work as expected (LP: #294277)
  * patches/disable-apr-loading.patch: Disable APR library loading until we
    properly provide it.
  * patches/disable-ajp-connector: Do not load AJP13 connector by default
    (LP: #300697)
  * rules: minor fixes to prevent build being called twice.

 -- Thierry Carrez <email address hidden> Thu, 27 Nov 2008 12:47:42 +0000

Changed in tomcat6:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers