Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-178

ContentRepositoryImpl should not call File.deleteOnExit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0.Alpha14
    • None
    • Management
    • None

    Description

      ContentRepositoryImpl.removeContent calls File.deleteOnExit if it can't delete the content or parent dirs. This is very wrong:

      1) The grandparent dir may have other children completed unrelated to the item being removed.
      2) The content in question may have been restored before process exit. For example, a deployment is undeployed, and then a while later the same bits are uploaded again.
      3) File.deleteOnExit is a small memory leak. This one's relatively minor.

      Attachments

        Activity

          People

            ehugonne1@redhat.com Emmanuel Hugonnet
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: