projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff723f5
)
8784: Add token to path (not query string) in download links.
author
Tom Clegg <tom@curoverse.com>
Fri, 30 Jun 2017 18:34:21 +0000
(14:34 -0400)
committer
Tom Clegg <tom@curoverse.com>
Fri, 30 Jun 2017 18:34:21 +0000
(14:34 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curoverse.com>
apps/workbench/app/controllers/collections_controller.rb
patch
|
blob
|
history
diff --git
a/apps/workbench/app/controllers/collections_controller.rb
b/apps/workbench/app/controllers/collections_controller.rb
index 3752bec7bef1e4ee9f6c59f5d999d66b4e016af5..625a6a8f61792fd5f6f92fb0ffb8c3293dce0ec7 100644
(file)
--- a/
apps/workbench/app/controllers/collections_controller.rb
+++ b/
apps/workbench/app/controllers/collections_controller.rb
@@
-285,7
+285,7
@@
class CollectionsController < ApplicationController
def download_link
token = @search_sharing.first.api_token
if Rails.configuration.keep_web_url || Rails.configuration.keep_web_download_url
- keep_web_url(@object.uuid, nil, {
query
_token: token})
+ keep_web_url(@object.uuid, nil, {
path
_token: token})
else
collections_url + "/download/#{@object.uuid}/#{token}/"
end