X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d63eaa465e157dd289a80738c5da83edaf03e784..28b6afc1e8ccf652c7a8fd43e22a8ac788febd85:/apps/workbench/app/controllers/actions_controller.rb diff --git a/apps/workbench/app/controllers/actions_controller.rb b/apps/workbench/app/controllers/actions_controller.rb index b0b7a0b64d..7b8c8eafc8 100644 --- a/apps/workbench/app/controllers/actions_controller.rb +++ b/apps/workbench/app/controllers/actions_controller.rb @@ -49,7 +49,7 @@ class ActionsController < ApplicationController return self.send(param) end end - redirect_to :back + redirect_back(fallback_location: root_path) end expose_action :copy_selections_into_project do @@ -87,6 +87,9 @@ class ActionsController < ApplicationController end if resource_class == Collection dst.manifest_text = Collection.select([:manifest_text]).where(uuid: src.uuid).with_count("none").first.manifest_text + # Fixes bug 19144: nullify some fields that are managed by keep-balance. + dst.storage_classes_confirmed = [] + dst.storage_classes_confirmed_at = nil end when :move dst = src @@ -164,7 +167,7 @@ class ActionsController < ApplicationController flash = {} # set owner_uuid to current project, provided it is writable - action_data = Oj.load(params['action_data'] || "{}") + action_data = Oj.safe_load(params['action_data'] || "{}") if action_data['current_project_uuid'] and current_project = Group.find?(action_data['current_project_uuid']) and current_project.writable_by.andand.include?(current_user.uuid)