ref: refs/heads/backgroud_patches_bnc550934 commit 098add2bf15a4fb8b32a8571aad9db4305ccd2ac Author: Josef Reidinger <jreidinger@suse.cz> Date: Mon Nov 30 15:04:21 2009 +0100 fix session timeout from backend (bnc#555255) --- .../app/controllers/application_controller.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/webclient/app/controllers/application_controller.rb b/webclient/app/controllers/application_controller.rb index 6dffe88..65ff6b9 100644 --- a/webclient/app/controllers/application_controller.rb +++ b/webclient/app/controllers/application_controller.rb @@ -19,6 +19,10 @@ class ApplicationController < ActionController::Base #catch webservice errors rescue_from Exception, :with => :exception_trap + rescue_from ActiveResource::UnauthorizedAccess do #lazy load of activeresource exception + flash[:error] = _("Session timeout"); + redirect_to '/logout' unless request.xhr? + end include AuthenticatedSystem include ErrorConstructor -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org