Skip to content

Fix attachments removed from temp folder while compose is open (#9732) - #10443

Open
dualfroz wants to merge 1 commit into
roundcube:masterfrom
dualfroz:fix/9732-keep-uploads-live-sessions
Open

dualfroz wants to merge 1 commit into
roundcube:masterfrom
dualfroz:fix/9732-keep-uploads-live-sessions

Conversation

@dualfroz

Copy link
Copy Markdown

gc_temp() removed uploads rows and temp files only by age, so an attachment in a compose window left open longer than temp_dir_ttl was gone when sending. it now skips uploads whose session still exists and is not expired in the session table, and keeps their files too. this only helps with the db session storage, for redis/memcache nothing changes from what i can tell. Fixes #9732

…cube#9732)

gc_temp() dropped upload records and temp files only by age, so an
attachment uploaded more than temp_dir_ttl ago disappeared from a
compose window that was still open. Uploads whose session still exists
in the session table are now kept, together with their files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attachments deleted from temp folder while compose window remains open

1 participant