#5759: something's wrong in either Router::parse() or Router::url()
---------------------------------+------------------------------------------
    Reporter:  petr.pavel        |          Type:  Bug               
      Status:  new               |      Priority:  Medium            
   Milestone:  1.2.x.x           |     Component:  Routing/Dispatcher
     Version:  RC3               |      Severity:  Normal            
    Keywords:  router parse url  |   Php_version:  PHP 5             
Cake_version:  1.2.0.7692 RC3    |  
---------------------------------+------------------------------------------
 I hit this bug first through Auth redirection. I accessed an url and
 because I wasn't authorized I was redirected to login. Upon successful
 login I was redirected back to the original url but with a notice level
 error on Array to string conversion [CORE\cake\libs\router.php, line 949].
 The only thing I was doing with the original url was that I parsed it with
 Router::parse().

 [[BR]]
 I found out that I can reproduce the problem in a different situation:

 {{{
 $url = '/mycontroller/myaction/passedValue';
 $parsedUrl = Router::parse($url);

 echo $form->create('Member', array('url' => $parsedUrl));
 echo $form->end();
 }}}

 This will give you the same error. For me it means that either
 Router::parse() returns a malformed url or Router::url() doesn't
 understand a well formed url.

 [[BR]]
 Petr

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5759>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to