[Tickets #10654] Re: Can't autosubmit to a ticket from Horde

bugs at horde.org bugs at horde.org
Fri Jun 1 10:55:57 UTC 2012


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

Ticket URL: http://bugs.horde.org/ticket/10654
------------------------------------------------------------------------------
  Ticket             | 10654
  Updated By         | simon at simonandkate.net
  Summary            | Can't autosubmit to a ticket from Horde
  Queue              | Whups
  Version            | 2.0-RC1
  Type               | Bug
  State              | No Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


simon at simonandkate.net (2012-06-01 10:55) wrote:

OK, I have been doing some more troubleshooting on this.

First of all, reset all the Type / State / Priority etc, and confirmed  
that Horde config is set correctly.

Then tracked down the issue in Api.php to the section that reads:

         if (!$form3->validate($vars, true)) {
             $f3 = var_export($form3->getErrors(), true);
             throw new Whups_Exception("Invalid arguments ($f3)");
         }

Take that out and the ticket is created fine (albeit with an empty  
redirect URL fatal error - the ticket is fine).

Follow that further to lib/Form/TicketCreateStepThree.php. Take out  
the section:

         /* Comment permissions. */
         $groups = $GLOBALS['injector']->getInstance('Horde_Group');
         $mygroups = $groups->listGroups($GLOBALS['registry']->getAuth());
         if ($mygroups) {
             foreach (array_keys($mygroups) as $gid) {
                 $grouplist[$gid] = $groups->getName($gid, true);
             }
             asort($grouplist);
             $grouplist = array(0 => _("This comment is visible to  
everyone")) + $grouplist;
             $this->addVariable(
                 _("Make this comment visible only to members of a  
group?"), 'group',
                 'enum', false, false, null, array($grouplist));
         }

And the ticket is created correctly (same redirect error).

The Fatal error is:

A fatal error has occurred
Redirect failed: URL is empty.

1. _returnToPage() /var/www/horde4/services/problem.php:96
2. Horde_Url->redirect() /var/www/horde4/services/problem.php:15

Details
The full error message is logged in Horde's log file, and is shown  
below only to administrators. Non-administrative users will not see  
error details.

Horde_Url_Exception Object
(
     [_previous:private] =>
     [details] =>
     [message:protected] => Redirect failed: URL is empty.
     [string:private] =>
     [code:protected] => 0
     [file:protected] => /usr/share/pear/Horde/Url.php
     [line:protected] => 326
     [trace:private] => Array
         (
             [0] => Array
                 (
                     [file] => /var/www/horde4/services/problem.php
                     [line] => 15
                     [function] => redirect
                     [class] => Horde_Url
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [1] => Array
                 (
                     [file] => /var/www/horde4/services/problem.php
                     [line] => 96
                     [function] => _returnToPage
                     [args] => Array
                         (
                         )

                 )

         )

)


But hey! at least the ticket is created.





More information about the bugs mailing list