Project

General

Profile

Defect #37030 ยป 37030.patch

Go MAEDA, 2022-05-11 17:21

View differences:

app/controllers/mail_handler_controller.rb
before_action :check_credential
# Requests from rdm-mailhandler.rb don't contain CSRF tokens
skip_before_action :verify_authenticity_token
# Displays the email submission form
def new
end
test/functional/mail_handler_controller_test.rb
end
assert_response :success
end
def test_should_skip_verify_authenticity_token
ActionController::Base.allow_forgery_protection = true
assert_nothing_raised {test_should_create_issue}
ensure
ActionController::Base.allow_forgery_protection = false
end
end
    (1-1/1)