Project

General

Profile

Bug #2146

incorrect error logged when security checks are enabled but not configured

Added by Ohad Levy over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Authentication
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Started POST "/reports" for 10.35.27.25 at Sun Jan 20 15:28:20 +0000 2013
Processing by ReportsController#create as

SSL is required - request from 10.35.27.25
Redirected to http://foreman/users/login
Operation FAILED: Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".
Completed 500 Internal Server Error in 135ms

AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
  app/controllers/application_controller.rb:290:in `generic_exception'

Associated revisions

Revision 8392a8c6 (diff)
Added by Dominic Cleal over 9 years ago

fixes #2146 - prevent double render

Revision 44c039e1 (diff)
Added by Ohad Levy over 9 years ago

refs #2146 - ensures redirect does not break on api requests too

History

#1 Updated by Ohad Levy over 9 years ago

this imho caused as the require_login can redirect to the login page.

#2 Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Dominic Cleal over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF