Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3647

CleanTempFilesCommand can not handle default configured directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.3.12, 5.4.4
    • 5.3.11
    • None
    • Kromeriz 19
    • 2

    Description

      It looks like, that the clean command can not handle with webapp relative directory setting. The following stacktrace appears on every command execution.

      15-10-30 12:00:00 ERROR author[DefaultQuartzScheduler_Worker-1]info.magnolia.module.scheduler.CommandJob: Cannot execute
       command cleanTempFiles-null.
      java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
              at org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:545)
              at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)
              at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:628)
              at info.magnolia.ui.framework.command.CleanTempFilesCommand.execute(CleanTempFilesCommand.java:68)
              at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:81)
              at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:70)
              at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:135)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ajuran AntonĂ­n Juran
                frank.sommer Frank Sommer
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 10m
                      10m