X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/252e4cb551974b888cfe28cc4a51a241b91d529a..7435f58364e90b8bf75db21602592ff0e7559b48:/apps/workbench/app/controllers/collections_controller.rb diff --git a/apps/workbench/app/controllers/collections_controller.rb b/apps/workbench/app/controllers/collections_controller.rb index 9073d06c17..812b80b8ce 100644 --- a/apps/workbench/app/controllers/collections_controller.rb +++ b/apps/workbench/app/controllers/collections_controller.rb @@ -258,7 +258,7 @@ class CollectionsController < ApplicationController arv_coll.rm "."+p end - if @object.update_attributes manifest_text: arv_coll.manifest_text + if @object.update manifest_text: arv_coll.manifest_text show else self.render_error status: 422 @@ -289,7 +289,7 @@ class CollectionsController < ApplicationController else arv_coll.rename "./"+file_path, new_file_path - if @object.update_attributes manifest_text: arv_coll.manifest_text + if @object.update manifest_text: arv_coll.manifest_text show else self.render_error status: 422 @@ -376,7 +376,7 @@ class CollectionsController < ApplicationController uri.path += 't=' + opts[:path_token] + '/' end uri.path += '_/' - uri.path += URI.escape(file) if file + uri.path += ERB::Util.url_encode(file).gsub('%2F', '/') if file query = Hash[URI.decode_www_form(uri.query || '')] { query_token: 'api_token',