SubmissionsController: Remove outdated ActionController::Live
mixin
The mixin was previously used for Server-Sent-Events, which were removed from CodeOcean a long time ago. After the mixin is removed, we can also fix the cookie send mechanism (this was erroneous with the mixin).
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class SubmissionsController < ApplicationController
|
class SubmissionsController < ApplicationController
|
||||||
include ActionController::Live
|
|
||||||
include CommonBehavior
|
include CommonBehavior
|
||||||
include Lti
|
include Lti
|
||||||
include SubmissionParameters
|
include SubmissionParameters
|
||||||
@ -87,7 +86,6 @@ class SubmissionsController < ApplicationController
|
|||||||
cookie_name = AuthenticatedUrlHelper.cookie_name_for(:render_file_token)
|
cookie_name = AuthenticatedUrlHelper.cookie_name_for(:render_file_token)
|
||||||
if params[AuthenticatedUrlHelper.query_parameter].present?
|
if params[AuthenticatedUrlHelper.query_parameter].present?
|
||||||
cookies[cookie_name] = AuthenticatedUrlHelper.prepare_short_living_cookie(request.url)
|
cookies[cookie_name] = AuthenticatedUrlHelper.prepare_short_living_cookie(request.url)
|
||||||
cookies.commit!
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Finally grant access and send the file
|
# Finally grant access and send the file
|
||||||
|
Reference in New Issue
Block a user