Allow for arbitrarily long file selections in batch download #124
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui#124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Please describe the feature
As a user I want to select as many files as I want to batch download as a TAR bundle so that I have a better UX and dont have to manually select batches of files.
Related to #116
Detailed description
The current
GET /api/datasets/{datasetId}/download.tar?fileIds=...endpoint caps selections at 200 files (
MAX_TAR_SELECTION) becausecommon reverse proxies reject request lines over ~8 KB. The cap
is purely about URL length; TAR streaming itself scales fine.
One idea is to switch to a POST-then-GET selection token but there could be simpler ways to do this.
AC
fileIDs as URL parameters in the requestPOSTis unavoidable for this, use signed tokens or any security measure available.