the entire collection with wget, try:</p>
<pre>$ wget --mirror --no-parent --no-host --cut-dirs=3 <%=
- url_for(link_opts.merge(action: 'show_file_links', only_path: false))
+ url_for(link_opts.merge(action: 'show_file_links', only_path: false,
+ trailing_slash: true))
%></pre>
<h2>File Listing</h2>
assert_no_session
end
+ test "reader token Collection links end with trailing slash" do
+ # Testing the fix for #2937.
+ show_collection(:foo_file, :active_trustedclient)
+ post(:share, collection_params(:foo_file))
+ assert(@controller.download_link.ends_with? '/',
+ "Collection share link does not end with slash for wget")
+ end
+
test "getting a file from Keep" do
params = collection_params(:foo_file, 'foo')
sess = session_for(:active)