Log message #114328

# At Username Text
# Aug 9th 2008, 20:04 rafaelbandeira3 yes
# Aug 9th 2008, 20:04 Spoom i take it in beforeFilter?
# Aug 9th 2008, 20:03 Spoom one sec
# Aug 9th 2008, 20:03 rafaelbandeira3 $this->Auth->allowedActions = array('*')
# Aug 9th 2008, 20:03 rafaelbandeira3 Spoom:
# Aug 9th 2008, 20:01 Spoom haven't found something similar to this googling
# Aug 9th 2008, 19:57 Spoom i'm thinking something like the fact that it's posting to the url as opposed to get
# Aug 9th 2008, 19:56 Spoom is there a reason that cake itself would generate a 403?
# Aug 9th 2008, 19:56 Spoom hmm
# Aug 9th 2008, 19:55 Spoom nope, no deal
# Aug 9th 2008, 19:54 Spoom ACTION checks if allowing it helps even though he's logged into cake
# Aug 9th 2008, 19:53 Spoom i am using auth
# Aug 9th 2008, 19:53 Spoom hmm
# Aug 9th 2008, 19:53 Jezek ok it seems to be working now, thanks
# Aug 9th 2008, 19:53 Spoom but i wasn't before
# Aug 9th 2008, 19:53 Spoom i am now, since i forgot to remove the domain when i pasted the access log ;^)
# Aug 9th 2008, 19:51 Matt1 Spoom: you using an some access control ?
# Aug 9th 2008, 19:50 Spoom any ideas with the ajax pagination?
# Aug 9th 2008, 19:50 Jezek hmm
# Aug 9th 2008, 19:49 Matt1 how can I use unique with find('all')
# Aug 9th 2008, 19:49 kalileo Jezek: there is sample code for that in the multitude of auth tutorials out there
# Aug 9th 2008, 19:48 Jezek ok
# Aug 9th 2008, 19:47 kalileo Jezek: as Matt1 proposed, check for admin access and then allow or dissalow the current action
# Aug 9th 2008, 19:47 Jezek but it keeps redirecting me
# Aug 9th 2008, 19:46 Spoom raw access log shows this: 71.74.111.184 - - [09/Aug/2008:20:55:13 -0400] "POST /questionnaire/questionnaire/questions/index/page:2 HTTP/1.1" 403 - "http://jamiearseneault.com/questionnaire/questionnaire/questions/index/page:1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008062009 (Gentoo) Firefox/3.0"
# Aug 9th 2008, 19:45 Jezek but i have so many different action names. and i dont want to have to add a new action to the list everytime i create one
# Aug 9th 2008, 19:44 kalileo (assuming you use auth in controller mode)
# Aug 9th 2008, 19:44 kalileo Jezek: dunno, never used the wildcard. I found that it was helpful to allow specific actions, such as display
# Aug 9th 2008, 19:41 Jezek doesn't that allow any page?
# Aug 9th 2008, 19:41 kalileo Jezek: you just said you have not allowed any page, thus you will be stuck at the login page forever ;)
# Aug 9th 2008, 19:40 Jezek $this->Auth->allow = array('*');
# Aug 9th 2008, 19:40 kalileo Jezek: then do that, allowing the action if it is not an admin action, Matt1 points you to a way to decide if admin or not
# Aug 9th 2008, 19:40 Spoom $this->Auth->allow ?
# Aug 9th 2008, 19:39 Jezek but if i add var $components = array('Auth'). it redirects to the login page, no matter what i put in beforeFilter
# Aug 9th 2008, 19:39 Spoom apache error log gives no clues, it just shows a 404 on accessing the 403.shtml error page
# Aug 9th 2008, 19:39 Jezek no i haven't
# Aug 9th 2008, 19:38 kalileo Jezek: have you setup your authentication to allow some pages already?
# Aug 9th 2008, 19:38 Matt1 Jezek: you could test for admin prefix on the appController:beforeFilter
# Aug 9th 2008, 19:29 Spoom i just don't understand why it gives forbidden errors when the pages themselves are being accessed fine
# Aug 9th 2008, 19:28 Jezek i know it must be a simple task
# Aug 9th 2008, 19:27 Spoom the 403 forbidden shows up in the ajax div so at least part of it is working