Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-2363

Temporary files are not deleted from java.io.tmpdir/Alfresco folder

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Not a bug
    • Affects Version/s: 3.3 Community
    • Fix Version/s: 3.3 Enterprise
    • Component/s: None
    • Security Level: external (External user)
    • Labels:
      None
    • Environment:
      Windows Vista, MySQL 5.1, Tomcat 6, Alfresco Community 3.3.0 build 2765 schema 4009

      Description

      Steps to reproduce:

      1. Open java.io.tmpdir/Alfresco folder (e.g. tomcat/temp/Alfresco)
      2. Open any space in web client.
      3. Click "add content"
      4. Browse for content and select it.
      5. locate in java.io.tmpdir/Alfresco folder file called like alfresco

      {\d}

      .upload with the same size as selected content
      6. uncheck "modify all properties" and click "ok" button
      7. check if file has dissapeared from temp folder

      Expected result:

      file should be deleted

      Actual result:

      file is still there.

      Corresponding exception for repro/fix purposes

      ERROR [org.quartz.core.JobRunShell] Job DEFAULT.tempFileCleanerJobDetail threw an unhandled Exception:
      java.lang.NullPointerException
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:249)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:226)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:226)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:226)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.execute(TempFileProvider.java:179)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.tempFileCleanerJobDetail threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      Caused by: java.lang.NullPointerException
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:249)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:226)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:226)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.removeFiles(TempFileProvider.java:226)
      at org.alfresco.util.TempFileProvider$TempFileCleanerJob.execute(TempFileProvider.java:179)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      ... 1 more

      Marking bug as "critical" as the issue increases disk space comsumption at least twice.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  alfrescoqa Alfresco QA Team (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Date of First Response:

                    Structure Helper Panel