search for: rendered_or_redirected

Displaying 8 results from an estimated 8 matches for "rendered_or_redirected".

2009 Feb 04
2
rendering error page for "Unauthorized" from before_filter
...ce. I am using a before filter to achieve this and inside that before filter I do it like so: render :text => "Unauthorized!", :status => :unauthorized, :layout => false The status is properly set since I see the following in the log: Filter chain halted as [:check_access] rendered_or_redirected. Completed in 130ms (View: 0, DB: 10) | 401 Unauthorized So far so good. What I would like to do is to show a user a nice (static html) error page so he knows what went wrong. Taking my cue from the rails documentation, I created a file named 401.html and placed it into the public/ directory of th...
2008 Oct 03
2
Filter chain halted as [:check_authentication] rendered_or_r
...gers who get tossed out, apprarently when they hit a before_filter to check authenication. However, it seams that they are properly getting authenticated and moved along correctly in the grand scheme of things before they are kicked. I get this error: Filter chain halted as [:check_authentication] rendered_or_redirected. I recently upgraded to rails 2.1.0 and only after I did that did I start to see this error. Before this was a non-issue. Anyone have this experience and how do I fix it? Thanks, -S -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this...
2008 Sep 26
1
Problem with authentication... Acts As Authenticated
...t"=>"xml", "action"=>"new", "controller"=>"sources/ownerships", "password"=>"MYPASS", "login"=>"MYUSER", "source_id"=>"1247"} Filter chain halted as [:login_required] rendered_or_redirected. Completed in 0.00284 (351 reqs/sec) | Rendering: 0.00066 (23%) | DB: 0.00000 (0%) | 401 Unauthorized [http://site.com/sources/1247/ownerships/new.xml?login=MYUSER&password=MYPASS] As you can see the parameters are precisely the same and, in one case, the call is successful while in another ca...
2010 May 10
1
Rails/mongrel/httpd issue - F13, rails 2.3.5
...t/login/login">redirected</a>.</body></html> and logs : ==> rails.log <== Processing DashboardController#index (for 10.75.128.51 at 2010-05-10 10:37:25) [GET] Redirected to http://ovirt.admin.virt.par.lng/ovirt/login/login Filter chain halted as [:is_logged_in] rendered_or_redirected. Completed in 5ms (DB: 28) | 302 Found [http://ovirt.admin.virt.par.lng/ovirt/] ==> mongrel.log <== Mon May 10 10:37:25 +0200 2010: Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]' for nil:NilClass> /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongre...
2009 Apr 09
0
HTTP Digest Authentication not working
...log in my browser(s), but entering any name will let me pass!! Only on Escape I get the unauthorized page. But wrong names or passwords will let me through! In my log file I get: Processing SecretsController#index (for 127.0.0.1 at 2009-04-09 10:44:32) [GET] Filter chain halted as [:authenticate] rendered_or_redirected. Completed in 16ms (View: 16, DB: 0) | 401 Unauthorized [http:// localhost/secrets] [4;36;1mSQL (0.0ms) [0m [0;1mSET NAMES ''utf8'' [0m [4;35;1mSQL (0.0ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m Processing SecretsController#index (for 127.0.0.1 at 2009-04-09 10:44:35) [GET]...
2009 May 03
0
HTTP Auth 401 Even on Valid Login
...Y2Q2MWYz MTA3ZmQ0Y2ZiOTFhMmRlMWQxIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy OjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA-- f03480a81df51ccf0c5d4a2a6e80f3aad10366cc Parameters: {"action"=>"new", "controller"=>"admin/items"} Filter chain halted as [:authenticate] rendered_or_redirected. Completed in 0.00136 (733 reqs/sec) | Rendering: 0.00112 (82%) | DB: 0.00000 (0%) | 401 Unauthorized [http://localhost/admin/items/new]
2010 Apr 26
2
woriking under webrick but not under passenger
...92.168.1.101 at 2010-04-26 18:56:24) [GET] [4;35;1mUser Columns (1.7ms) [0m [0mSHOW FIELDS FROM `users` [0m [4;36;1mUser Load (0.7ms) [0m [0;1mSELECT * FROM `users` WHERE (`users`.`id` IS NULL) LIMIT 1 [0m Redirected to https://******/login/login_page Filter chain halted as [:authorize] rendered_or_redirected. Completed in 31ms (DB: 3) | 302 Found [https://******/] Does anybody has any suggestion what I could do? -------------------------------------------- class LoginController < ApplicationController def add_user @user = User.new(params[:user]) if request.post? and @user.save fla...
2008 Oct 07
6
https problems
I''m having a problem but don''t know what is causing it so I don''t know exactly where to post, please bear with me. I''m trying to set up https access however whenever I go to https://url_for_site the root route renders but the url is rewritten to http://url_for_site. The ssl request shows in the apache logs but obviously no further ssl requests show up.