Skip to content
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

Fail to download recursive with encryption #499

Open
2 tasks
erikogabrielsson opened this issue Jan 24, 2025 · 1 comment
Open
2 tasks

Fail to download recursive with encryption #499

erikogabrielsson opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@erikogabrielsson
Copy link

Describe the bug
Running download with the recursive and pubkey flags fails with:
Error: failed to get file for download, reason: server returned status 404

Steps to reproduce
Run command:
./sda-cli.exe download -config .\s3cmd.conf -dataset-id -url https://download.bp.nbis.se -pubkey test.pub.pem -recursive

Expected behavior

  • Recursive download works with encryption.
  • Tests verifying the fix are added

Additional context
Using the getFileIDURL() method in the fileCase() method looks to solve this issue.

Estimation of size: small

Estimation of priority: low

@erikogabrielsson erikogabrielsson added the bug Something isn't working label Jan 24, 2025
@aaperis
Copy link
Contributor

aaperis commented Jan 27, 2025

This is not a bug but rather a missing feature since the recursive download with encryption is not implemented yet, see #496 .

Meanwhile, one can use:

sda-cli download --config <s3config-file> --url <download-url> --pubkey <pubkey-filepath> --dataset-id <dataset-id> --outdir <outdir-name> --from-file <filelist>

with a filepath list from results fetched using sda-cli list to achieve the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants