I found how to submit a new ticket. It's here: https://trac.cakephp.org/ticket/5759
Petr Dne 16.11.2008 12:06, Petr 'PePa' Pavel napsal(a): > Oh ok. I didn't set up auth redirect manually. > > Just to make sure we're on the same boat, here's another description of > the procedure: > a) I attempt to access > http://teachtheworldguitar.pp/orderItems/delete/30 > > b) I'm not authorized so I'm redirected to login with the above url > automatically saved into auth redirect (CakePHP does that) > > c) I submit the login form and I'm redirected to > http://teachtheworldguitar.pp/orderItems/delete/30 > here I get the notice level error I mentioned earlier > > I don't know what it contained when I'm trying to access > http://teachtheworldguitar.pp/orderItems/delete/30 > but after I do and I'm redirected to the login page then the auth > redirect contains what I wrote - the url I was trying to access. > > To generate the notice artificially you can feed $form->create() with > the array I gave you: > echo $form->create('Member', array('url' => > array('controller' => 'order_items', 'plugin' => null, 'pass' => > array(0 => 30), 'action' => 'delete'))); > echo $form->end(); > > I still don't know though, if the bug is in Router::parse() or > Router::url(). Can anyone tell me please how to submit a bug ticker? > I can read them here > https://trac.cakephp.org/report/1 > But I haven't found a way to submit a new one. I did register but still > don't see any "submit new ticket". > > Petr > > > Dne 15.11.2008 16:15, validkeys napsal(a): >> In your post, it just says that it redirects to a login form. Did you >> setup your auth redirect variable manually or are you using the >> default users/login? Sorry, just trying to help. >> >> On Nov 15, 3:04 am, Petr 'PePa' Pavel <[EMAIL PROTECTED]> wrote: >>> I'm not sure what you're asking about. I already gave you the value of >>> $authRedirect... >>> >>> Petr >>> >>> Dne 15.11.2008 0:13, validkeys napsal(a): >>> >>>> what is the value of your authRedirect? >>>> On Nov 14, 12:35 pm, "Petr 'PePa' Pavel" <[EMAIL PROTECTED]> wrote: >>>>> Hello everyone, >>>>> I'd like to share with you what I have discovered. >>>>> Here's a procedure that triggers a notice level error: >>>>> 1) When accessing url >>>>> http://teachtheworldguitar.pp/orderItems/delete/30 >>>>> OrderItemsController->isAuthorized() returns false so I'm logged off >>>>> and redirected to a login form. That was planned, so far so good. >>>>> 2) The url I came from is saved and used after successful login for >>>>> redirection. This is in my MembersController->login(): >>>>> $authRedirect = $this->Auth->redirect(); >>>>> if (!is_array($authRedirect)) { >>>>> $authRedirect = Router::parse($authRedirect); >>>>> } >>>>> ... some code here ... >>>>> $this->redirect($authRedirect); >>>>> 3) Now I'm getting to the point. Just before the redirect call >>>>> $authRedirect looks like this: >>>>> array( >>>>> 'controller' => 'order_items', >>>>> 'plugin' => null, >>>>> 'pass' => array(0 => 30), >>>>> 'action' => 'delete') >>>>> ) >>>>> Looks ok but then I get >>>>> Notice (8): Array to string conversion [CORE\cake\libs\router.php, >>>>> line 949] >>>>> So either Router::parse() returns malformed result or Router::url() >>>>> doesn't understand something that is correctly formed. The notice >>>>> itself is in Router::mapRouteElements(). >>>>> Before sending this I checked that I have the same version of >>>>> router.php as the latest svn >>>>> source:https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/router.php >>>>> So what do you think? Is it me or is there really a bug. If it is a >>>>> bug, what should I do? >>>>> Petr > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
