You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2016/01/29 08:38:39 UTC

[jira] [Commented] (SLING-5467) Sling Event - CleanUpTask wrongly marks folders

    [ https://issues.apache.org/jira/browse/SLING-5467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123145#comment-15123145 ] 

Carsten Ziegeler commented on SLING-5467:
-----------------------------------------

This issue is for a similar problem in the CleanUpTask

> Sling Event - CleanUpTask wrongly marks folders
> -----------------------------------------------
>
>                 Key: SLING-5467
>                 URL: https://issues.apache.org/jira/browse/SLING-5467
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Event 4.0.0
>            Reporter: Christoph Nagel
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: Event 4.1.0
>
>
> 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|https://github.com/cnagel/sling/commit/165a8a04a129a4669599c6b15f48f67060e6c83c].
> Please have a look and if you like I can create a pull request on GitHub.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)