Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5578

Attachments' temp files persist past shutdown of tomcat.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5 M2
    • Fix Version/s: 2.6 RC1
    • Labels:
      None
    • Environment:
      tomcat
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      To repeat:
      Start xwiki in tomcat, check /usr/share/tomcat5.5/temp (or whatever is the result of calling System.getProperty("java.io.tmpdir"))
      Upload a file,
      ls /usr/share/tomcat5.5/temp
      note the new temp file
      shutdown tomcat
      ls /usr/share/tomcat5.5/temp
      note the file is still there.

      commons.fileupload gives files names which are guaranteed unique for that classloader. When the servlet is restarted, the filenames are no longer guaranteed unique and this might cause subtle and difficult bugs.

        Attachments

          Activity

            People

            Assignee:
            calebjamesdelisle CalebJamesDeLisle
            Reporter:
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: