Skip to content

Test uncurl support for temporary token/access URLs #334

Open
@mih

Description

@mih

Example nextcloud-like temporary share URLs:

https://fz-juelich.sciebo.de/s/JUjJbWgFDturcHc/download?path=/cars&files=4horsemen.jpg

This points to a file 4horsemen.jpg in a folder /cars in a folder share. Those shares are very useful. They need no user management, can be password-protected, and expire after a customizable duration.

If a dataset has been exported to such a nextcloud instance (e.g. webdav filetree push), and shared in that way, we can add file availability info to each file using URLs like the one above, and have them be handled by uncurl. To make this complete, we need to define a match-expression for that URL like

(?P<site>https://[^/]+)/s/(?P<accesscode>[^/]+)/download\?path=/(?P<dir>[^&]+)&files=(?P<file>.*)$

If #157 is resolved, an alternative accesscode could be supplied via the configuration at runtime, and (re-)enable a download via a future temporary share, which is structurally identical, except for a different accesscode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions