Log message #114337

# At Username Text
# Aug 9th 2008, 20:07 rafaelbandeira3 nice... first things first... you're shure it's url request is right?
# Aug 9th 2008, 20:06 Spoom paging is in an element as recommended by the tutorial
# Aug 9th 2008, 20:05 Spoom Spoom: the 403 forbidden shows up in the ajax div so at least part of it is working
# Aug 9th 2008, 20:05 Spoom Spoom: the pages that are referred to in the error work fine if i copy and paste them into the address bar
# Aug 9th 2008, 20:05 Spoom Spoom: hi folks, i'm trying to set up ajax paging in cake using the paginator, and it works fine without ajax, but when i turn on ajax, it starts giving me 403 forbidden errors on clicking a page link, i'm following http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 , any ideas?
# Aug 9th 2008, 20:05 Spoom it's ok, one sec
# Aug 9th 2008, 20:05 rafaelbandeira3 just got into the talk
# Aug 9th 2008, 20:04 rafaelbandeira3 sorry but what ecxactly?
# Aug 9th 2008, 20:04 Spoom same issue
# 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