-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When there exist c4gh files in the folder, the -continue flag does not work when recursively encrypting and uploading folder(s). That is, instead of ignoring already uploaded files and continue, the command is aborted with the following error when it encounters an existing c4gh file.
ERRO[0000] Skipping input file test_dataset_small/dummy_1.txt. Reason: outfile test_dataset_small/dummy_1.txt.c4gh already exists.
Error: aborting
Steps to reproduce
Start the SDA integration test and download s3cmd-inbox.conf and run docker cp verify:/shared /tmp/
Upload a folder containing some files by sda-cli, for example
sda-cli -config s3cmd-inbox.conf upload -r -encrypt-with-key /tmp/shared/c4gh.pub.pem test_dir1and break in the middle
Then run
sda-cli -config s3cmd-inbox.conf upload -r -encrypt-with-key /tmp/shared/c4gh.pub.pem test_dir1 -continueNote that the flag -continue works when uploading without the -encrypt-with-key flag.
Expected behavior
- The command should ignore already uploaded files and continue the process when the flag
-continueis used, either with or without the-encrypt-with-keyflag. - Tests verifying the fix are added
Additional context
Estimation of size: small/medium/big
Estimation of priority: low/medium/high
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working