[Tickets #11518] Re: Login Tasks

bugs at horde.org bugs at horde.org
Wed Oct 17 06:54:24 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11518
------------------------------------------------------------------------------
  Ticket             | 11518
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Login Tasks
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Feedback
-Priority           | 2. Medium
+Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2012-10-17 00:54) wrote:

>> I guess I am still not understanding the issue.  I can verify that
>> both the rename sentmail monthly and the delete sentmail monthly
>> tasks are working correctly.
>>
>> You will have to debug further to explain what is not working
>> correctly on your system, or else you should take your questions to
>> the mailing list.
>
> Here the debug i try. I put some traces in  
> /usr/share/php/Horde/LoginTasks.php
>
> public function runTasks(array $opts = arraimp/lib/LoginTasks/Task/y())
>     {
>
>         Horde::logMessage('==== ENTRY IN RUN TASK =====', 'WARNING');
>        .....
>          /* Perform ready tasks now. */
>         foreach  
> ($this->_tasklist->ready(!$this->_tasklist->processed ||  
> $opts['user_confirmed']) as $key => $val) {
>             if (($val instanceof Horde_LoginTasks_SystemTask) ||
>                 in_array($val->display, array(self::DISPLAY_AGREE,  
> self::DISPLAY_NOTICE, self::DISPLAY_NONE)) ||
>                 in_array($key, $opts['confirmed'])) {
>                 Horde::logMessage('RUN TASK : '.get_class($val), 'WARNING');
>                 $val->execute();
>             }
>         }
>
> In imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php
>    public function execute()
>     {
>         Horde::logMessage('DELETE_SENT_MONTHLY EXECUTE', 'WARNING');
>
> and imp/lib/LoginTasks/Task/RenameSentmailMonthly.php
> public function execute()
>     {
>         Horde::logMessage('RENAMESENTMAILMONTHLY EXECUTE', 'WARNING');
>
> TEST1
> ---------
>
> rename_sentmail_monthly is set to on and  
> delete_sentmail_monthly_keep is different from 0. Perform tasks are  
> well displayed on screen. Here the log :
>
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26221 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] RUN TASK : IMP_LoginTasks_Task_DeleteSentmailMonthly  
> [pid 26221 on line 216 of "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] DELETE_SENT_MONTHLY EXECUTE [pid 26221 on line 35 of  
> "/var/www/horde4/imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php"]
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26221 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26221 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26213 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
>
> I don't understand why RenameSentmailMonthly.php is not called after  
> DeleteSentmailMonthly.php

Can't reproduce. If both are non-zero, they will both be active and  
appear on the same confirmation page.

> TEST2
> ---------
> rename_sentmail_monthly is set to on and  
> delete_sentmail_monthly_keep is set to zero. Here the log :
>
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26257 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] RUN TASK : IMP_LoginTasks_Task_RenameSentmailMonthly  
> [pid 26257 on line 216 of "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] RENAMESENTMAILMONTHLY EXECUTE [pid 26257 on line 46 of  
> "/var/www/horde4/imp/lib/LoginTasks/Task/RenameSentmailMonthly.php"]
> HORDE [imp] ==== ENTRY IN RUN TASK ===== [pid 26257 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26257 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]
> HORDE: [imp] ==== ENTRY IN RUN TASK ===== [pid 26146 on line 192 of  
> "/usr/share/php/Horde/LoginTasks.php"]

I can reproduce this, but this is the expected behavior.

You've cleared out all the user's preferences before trying this out, correct?

Unless you can debug this yourself, this ticket will be closed as this  
behavior is not reproducible.





More information about the bugs mailing list