Skip to content

#6972 allow pdf download if "original" is selected.#7597

Merged
kcondon merged 1 commit intodevelopfrom
6972-pdf-download-error
Feb 12, 2021
Merged

#6972 allow pdf download if "original" is selected.#7597
kcondon merged 1 commit intodevelopfrom
6972-pdf-download-error

Conversation

@sekmiller
Copy link
Contributor

@sekmiller sekmiller commented Feb 9, 2021

What this PR does / why we need it:
If a user selects "original" file format as the download option for a non-tabular file it fails.

Which issue(s) this PR closes:

Closes #6972

Special notes for your reviewer:
Applies a test of whether a file selected to be downloaded as "original" is tabular. Similar to how it is handled for a multiple file download.

Suggestions on how to test this:
If there are tabular files present in a dataset the option for downloading any file as "original" will be present. The user should be able to select a single non-tabular file and successfully download it by selecting "original".

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
no
Is there a release notes update needed for this change?:
no
Additional documentation:
none

Copy link
Contributor

@scolapasta scolapasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable enough as a quick fix, but I'll ask @landreev to also give it a quick lookover, as he had commented on the issue.

@landreev landreev self-requested a review February 11, 2021 20:37
@landreev landreev self-assigned this Feb 11, 2021
Copy link
Contributor

@landreev landreev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the PR.
My only suggestion would be to maybe add one sentence under "how to test", and clarify, that the choice of "tabular" vs. "original" will still be showing in the pulldown. But the download will actually work for a single non-tab. file with the fix in place.

@landreev landreev removed their assignment Feb 11, 2021
@kcondon kcondon assigned kcondon and unassigned kcondon Feb 12, 2021
@kcondon kcondon merged commit c997eaf into develop Feb 12, 2021
@djbrooke djbrooke added this to the 5.4 milestone Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Download: 404 error for pdf downloads in projects with ingested tabular files

5 participants