Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
obs-server
obs-server-2.8-0101-api-Drop-exception-handling...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-server-2.8-0101-api-Drop-exception-handling-for-ActionController-Red.patch of Package obs-server
From accfcf4669f4609c8a580ca8a61d2fa2b59ad592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Geuken?= <bgeuken@suse.de> Date: Fri, 16 Jun 2017 13:22:16 +0200 Subject: [PATCH] [api] Drop exception handling for ActionController::RedirectBackError With the update to Rails 5 we replaced the redirect_to :back calls with the new redirect_back method. This always have a fallback location and we can safely remove the exception handling for removed ActionController::RedirectBackError exceptions. ==== /vagrant/src/api/app/controllers/webui/webui_controller.rb:77:in `<class:WebuiController>': uninitialized constant ActionController::RedirectBackError (NameError) from /vagrant/src/api/app/controllers/webui/webui_controller.rb:6:in `<top (required)>' --- src/api/app/controllers/webui/webui_controller.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api/app/controllers/webui/webui_controller.rb b/src/api/app/controllers/webui/webui_controller.rb index f01601d18..1a3bac0ca 100644 --- a/src/api/app/controllers/webui/webui_controller.rb +++ b/src/api/app/controllers/webui/webui_controller.rb @@ -72,10 +72,6 @@ class Webui::WebuiController < ActionController::Base end end - rescue_from ActionController::RedirectBackError do - redirect_to root_path - end - class ValidationError < Exception attr_reader :xml, :errors -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor