Tuesday, January 27, 2009

saveAll() and Auth/Acl - redirecting to login page??

Hello,

I have been trying to lock down this problem for the past little while
- here is my issue.

- I have a form with News Model data, and Link Model data..
- My controller runs $this->News->saveAll($this->data, array
('validate' => 'first'))

If one of the validations in the News or Link data-set fails, it all
works fine, shows the errors, etc. However, if I try to re-submit, the
form with the error, the application freaks out and kills my
Authenticated session, prompting me to login again - the AuthMessage I
see is that I do not have permission to access this content... what
content would that be, I can edit it properly when all fields are
entered properly.

I am not really sure what is happening, I cannot seem to find a way to
log or view anything before the re-direction happens.. my app is not
doing anything to the Auth session or anything like that..

What gives? How would I even start to try and track this down?

I tried removing Auth and Acl from my components in AppController, and
the validation worked multiple times without asking me to login again
- so at this point I assume something somewhere is happening to the
Auth'd session.

Any help on this would be great, I am lost at this point..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: