I can confirm this error. It is even present in 2.5.4, but I check that 
this bug was introduced in 2.5.3 version.


On Friday, 1 August 2014 06:26:58 UTC-4:30, Leandro Mouta wrote:
>
> The same in 2.5.3 =/
> I think the bug fixed was related with loginRedirect. 
>
> If I remove the second parameter at the following line, it works.
>
> https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Component/AuthComponent.php#L415
>
> But I think there is a reason for this parameter is true. And I don't want 
> to touch the core files.
>
>
> 2014-08-01 6:19 GMT-03:00 José Lorenzo <[email protected] <javascript:>>:
>
>> I think that was a bug fixed in 2.5.3
>>
>>
>> On Friday, August 1, 2014 5:01:28 AM UTC+2, Leandro Mouta wrote:
>>>
>>> Hi, guys!
>>>
>>> I'm developing a little app with cake 2.5.2. After setup Auth component, 
>>> every time I try to access a unauthorized action typing the url in the 
>>> address bar, I'm redirected to another url with duplicated cakephp folder. 
>>>
>>> Example: localhost/cakephp/test (unauthorized) => 
>>> localhost/cakephp/cakephp
>>>
>>> If I try to access the same url through links (without typing in the 
>>> address bar), unauthorized redirect works normally. I don't want to set the 
>>> Auth component property unauthorizedRedirect because I want to be 
>>> redirected to the previous page, but this is not working if I type an 
>>> unauthorized url in the address bar.
>>>
>>> Can you help me? If I have not been clear, let me know.
>>>
>>> Thanks.
>>>
>>  -- 
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/cake-php.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to