Stream: troubleshooting

Topic: file download link


view this post on Zulip jamie jamison (Sep 26 2024 at 16:59):

I've been helping a user who found that restricting a fle caused the download linke to no longer be displayed. Changing back to public did not return the link to the display. I can show her how to manually construct a link but is there a way to get this to display again. Thanks.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 17:57):

Huh. Can you please link to the dataset?

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 17:58):

And did you republish?

view this post on Zulip jamie jamison (Sep 26 2024 at 18:10):

I did republish. <https://doi.org/10.25346/S6/7YBSJK> is out test dataset.

I can show the user how to manually set up a download link for the WashU Genome Browser but still wanted to see if it is possible to get the lank back in the file display.

How this came up is I was helping her setup files (in Dataverse) to be displayed in theWashU Genome Browser. The PI wasn't sure if she wanted the files to be public on Dataverse but I'm not sure it's possible to be linked to the Genome Browser without being public.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 18:31):

Huh. Could I trouble you to try to reproduce this on https://demo.dataverse.org ?

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 18:33):

Also, these files have a popup when you try to download. Terms. That's probably why the "Download URL" isn't shown.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 18:36):

"Certain files do not provide Download URLs for technical reasons: those that are restricted, have terms of use associated with them, or are part of a Dataverse collection with a guestbook enabled." -- https://guides.dataverse.org/en/5.14/user/find-use-data.html#downloading-via-url

view this post on Zulip jamie jamison (Sep 26 2024 at 18:55):

I just published this on the demo: https://doi.org/10.70122/FK2/NCTOFS

Looks like restricting the file removes the download link display but I do know how to manually make a download like.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 19:08):

Yes, the Download URL shows at https://demo.dataverse.org/file.xhtml?persistentId=doi:10.70122/FK2/NCTOFS/4L3UVL

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 19:08):

No popup when you try to download the file. That's the difference.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 19:09):

What if you get rid of this popup?

Screenshot 2024-09-26 at 3.09.07PM.png

view this post on Zulip jamie jamison (Sep 26 2024 at 19:33):

yes, get a pop-up if restricted.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 26 2024 at 19:48):

Right, but you can also get a popup if there are terms of use to agree to before downloading.

view this post on Zulip Sherry Lake (Sep 27 2024 at 14:03):

Maybe a "bug" (but I like it....), but something that "works" for files that have different terms of use (not CC-0) but are not "restricted", if you know the fileID, you can download the file.

This dataset in demo....
https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/92XEEU

I have the terms CC-BY. No file URL shows up in UI, but if I know the fileid, I can use that ID to download the file.

Using this command:
curl https://demo.dataverse.org/api/datasets/:persistentId/?persistentId=doi:10.70122/FK2/92XEEU

and then getting a fileID from the above output - this command downloads the file.
wget https://demo.dataverse.org/api/access/datafile/2357504

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 27 2024 at 14:11):

@Sherry Lake yes, that's this bug: File API download bypasses terms of use and guestbook #2911

@Alejandra Tenorio has been trying to fix it (but needs a "go ahead" from the core team). Please see her post and #community > No Restricted Files / Access conditions .

view this post on Zulip Sherry Lake (Sep 27 2024 at 14:14):

But then these CC-By files will not be able to be downloaded via API? Only the UI?

Then there must be another way - popup, or notice via command line? to download them via API?

view this post on Zulip Sherry Lake (Sep 27 2024 at 14:16):

And... am now reading the issue... should have done that first.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 27 2024 at 14:25):

No worries. Please ask over in #community > No Restricted Files / Access conditions


Last updated: Oct 30 2025 at 06:21 UTC