#950 mod_http_upload does not delete directories of expired files

Reporter Richard Hughes
Owner Zash
Stars ★ (1)  
  • Priority-Medium
  • Type-Defect
  • Status-Fixed
  1. Richard Hughes on

    What steps will reproduce the problem? 1. Enable mod_http_upload 2. Set http_upload_expire_after = 3600 3. Upload an file or image to group chat 4. Wait for 3600 seconds What is the expected output? What do you see instead? Directory /var/lib/prosody/http_upload/0wzVS79J3iWKklmw was created containing the uploaded file. After the expiry time has been exceeded I would expect the directory in /var/lib/http_upload/0wzVS79J3iWKklmw to be removed together with the file contained within. Actual result is that the uploaded file within directory /var/lib/prosody/http_upload/0wzVS79J3iWKklmw is deleted but directory /var/lib/prosody/http_uplaod/0wzVS79J3iWKklmw remains. What version of the product are you using? On what operating system? Prosody version 0.10 mod_http_upload version from https://hg.prosody.im/prosody-modules on 26th June 2017. Sadly individual file does not contain any version or change history. Please provide any additional information below.

  2. Zash on

    Done in https://hg.prosody.im/prosody-modules/rev/b1c5b0c369c2

    • tags Status-Fixed
    • owner Zash

New comment