-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restricted File Download: "Download (selected files)" button above files table is not properly handling restricted files #2722
Comments
This may be a duplicate of #2719. |
No, I don't think this has anything to do/in common with #2719. |
@sbarbosadataverse do you mind trying this again and seeing if it is still happening? i believe this was before we made changes to the dataset page. thanks! |
This is still happening. For example: https://dataverse.harvard.edu/api/access/datafiles/104548 |
@eaquigley just tested and still happens. Glass fish error shows up after you see the "murray terms" of agreement and of course, you shouldn't even get that far |
@sbarbosadataverse ah! not logged in is the account state for this. adding that to the original issue text. thanks! |
@scolapasta @mheppler The other bug described by Tim (Brain Genomics Dataverse)
Expected Result: Actual Result: By the way--this is likely not contained to Tim's dataverse--but likely every dataverse that has restricted files and a guestbook. |
OK, to summarize, as I understand it. The "Download" button at the top of the files table on the dataset page, which is intended for downloading "selected files", is not properly handling the use case for restricted files being selected. |
Based on discussions with Liz and Gustavo I have implemented the following: If the user selects only files that are restricted he will be shown a popup saying that none of the selected can be downloaded. If the dataset allows request access that will be noted in the popup. If the user selects both files that he can and cannot download, he will be shown a popup which lists by name those files that cannot be downloaded with an option to continue to download those files for which he does have permission or to cancel. If he chooses to continue the guestbook/terms will be shown next or if not required the download of permitted files will continue directly. |
@eaquigley can you review the bundle and make changes or pass to Kevin. |
@sekmiller can do. could you comment on the pull request for this feature with this issue # so its easier to find. thanks! |
updated text for this workflow to be more user friendly. Issue #2722
text updated in the bundle. passing to @kcondon. could i get another build on dataverse-internal to see how the text looks in the UI? thanks! |
OK, popups are correct. Download does not work in the case where you want to download the unrestricted files when both restricted and unrestricted are selected, they don't actually download. |
Had @sbarbosadataverse try out this new workflow. Everything looks good to her except for how difficult it is to identify the names of the restricted files that won't be downloaded. @sbarbosadataverse also stated that no matter the # of restricted files selected, all names need to appear either in a column style or the way it currently is with more formatting (like: File 1, File 2, File 3) and a way for them to stand out more. |
I have formatted the requested restricted files as a list for readability. The code has been pushed to the branch. |
Works as described, closing. |
If I navigate to this dataset, when not logged in: https://dataverse.harvard.edu/dataset.xhtml?persistentId=hdl%3A1902.1%2F00169
and I select the restricted files and select download at the top right of the file list--because it shows up as an option and doesn't disappear when I select restricted files, it throws the attached error instead of a message saying "files can't be downloaded see terms of use"
Additionally, the Terms of Use are popping up which should not be happening.
The text was updated successfully, but these errors were encountered: