-
Notifications
You must be signed in to change notification settings - Fork 5
cannot export file if drive is already unlocked #12
Comments
Another way to Repro
Expected
Actual |
Sounds like this has been repro'd but keeping label so in case someone wants to repro this less-than-ideal fix: Unplug usb device, plug back in, try again. I don't think this will work if you say to remember the passphrase forever though. |
I tried to reproduce this before attempting a fix but it seems like this is resolved on Looking at the code, this if statement should handle the case where the drive has already been unlocked: https://github.com/freedomofpress/securedrop-export/blob/master/securedrop_export/export.py#L247 If you agree @creviera, I think we can close this one |
I still see this bug by running through the steps here: #12 (comment) except instead of seeing USB_BAD_PASSPHRASE you see ERROR_GENERIC now. |
i think the way to prevent this is to check if the drive is already unlocked and then skip the luksOpen step and later the unmount+luksClose step |
Description
When the drive is already unlocked, the return code is
USB_BAD_PASSPHRASE
and the file is not copied to the usb drive.Steps to Repro
sd-export-usb
and selectsd-export-usb: Files
qvm-open-in-vm sd-export-usb archive.sd-export
fromsd-svs
and see that you get backUSB_BAD_PASSPHRASE
The text was updated successfully, but these errors were encountered: