Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-681

Temporary files are not deleted when using multipart requests

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.3.Final
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux with Tomcat

      Description

      The multipart provider uses mime4j to parse multipart messages. To store the messages it initializes a TempFileStorageProvider which stores the messages as temporary files on the harddrive. Unfortunately these files are only deleted, when the JVM exits, the internal delete() method doesn't seem to be called from RESTEasy. When processing lots of requests with a lot of data the temporary files need a huge amount of storage until Tomcat restarts.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                lennart.diedrich Lennart Diedrich
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: