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

Attachments' temp files persist past shutdown of tomcat.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.6 RC1
    • 2.5 M2
    • None
    • tomcat
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: