[Tickets #11518] Re: Login Tasks

bugs at horde.org bugs at horde.org
Mon Oct 15 09:48:08 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         | laurent.foucher at iut-tlse3.fr
  Summary            | Login Tasks
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


laurent.foucher at iut-tlse3.fr (2012-10-15 09:48) 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

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"]

Now, folders are well created.

Thanks.






More information about the bugs mailing list