securedrop-client icon indicating copy to clipboard operation
securedrop-client copied to clipboard

always use a temporary directory when downloading files and replies

Open cfm opened this issue 1 year ago • 1 comments

Description

Rather than defaulting to either ~/QubesIncoming or ~/Downloads or taking an explicit path only under test, API.download_{reply,submission}() should always save a file to a temporary directory provided by the caller.

How will this impact SecureDrop users?

No user-facing impact.

How would this affect the SecureDrop Workstation threat model?

No threat-model implications.

cfm avatar May 13 '24 22:05 cfm

One reason to make this change is so that the branch (code-path) we test is actually the branch we care about, as demonstrated by the test-level changes in 18e19c3bda92c3131a3438e584e50c99de95bf89.

cfm avatar May 14 '24 00:05 cfm

@cfm I think this can be closed now and considered in the context of #2471 - do you agree?

eloquence avatar Jul 29 '25 22:07 eloquence