Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Event 4.0.0
-
None
Description
The HistoryCleanUpTask has to remove all Jobs stored in the JCR older than the given parameter age (a number of minutes).
The current implementation traverses the /var/eventing/jobs tree where parts of the path define the date of a job. Problem: the comparison of the job- and removeDate is wrong. First it compares the years, than months, weeks and days but this doesn't work.
I've forked the project on github and wrote a test and fix. Further I added a test dependency for sling-mock in the pom.xml: Fixes HistoryCleanUpTask date comparison.
Please have a look and if you like I can create a pull request on GitHub.
Attachments
Attachments
Issue Links
- is cloned by
-
SLING-5467 Sling Event - CleanUpTask wrongly marks folders
- Closed