Bug #4285
closed
[Workbench] Not found error when the view or download icons are clicked for a file in a subdir of a collection.
Added by Radhika Chippada over 10 years ago.
Updated over 10 years ago.
Assigned To:
Radhika Chippada
Estimated time:
(Total: 0.00 h)
- Status changed from New to In Progress
- Story points set to 0.5
- Assigned To set to Radhika Chippada
- Target version changed from Bug Triage to 2014-10-29 sprint
Reviewing f1eb092
I suggest writing the main fix as
file_name = params[:file].andand.sub(/^(\.\/|\/|)/, './')
This version avoids prepending ./
if it's already specified, and writes ./
correctly if params[:file]
starts with a /
. It does add ./
for the single-file case, but that's okay according to the Keep manifest documentation.
If you're comfortable with this change, I'm happy to see it merged. Thanks.
Thanks Brett. I updated accordingly.
- Status changed from In Progress to Resolved
Applied in changeset arvados|commit:a3db87c5a23f3a1e72ea82304d24db8c1757c095.
Also available in: Atom
PDF