I did not catch this until I had scratched myself in the head for a
good while.
I thought it might help at least one other person avoid an uncommon
problem.

1.2.2 fixes a problem in AuthComponent that caused me some new
problems. The fix is good, I just did not realise how it affected
requestAction() and my personal convention for naming "request
actions".

Auth does not like uppercase letters in action names. I was
specifically using "SomeAction" as the action name for an action I
call using requestAction. Just to make them stand out from normal
actions.

The confusing things about finding out what had happened was:
• being already logged into a session will still "allow" the action to
run.
• shell tasks (not logged in) would just stop (since new headers were
set) without any error.
• using $this->Auth->allow() did help with direct requests (e.g. using
curl) but not for requestAction().

The "fix" was to simply rename SomeAction to some_action which is more
in-line with Cakes conventions.



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to