tus-java-server icon indicating copy to clipboard operation
tus-java-server copied to clipboard

Exception if cleanup called before any request handled

Open OverDrone opened this issue 3 years ago • 0 comments

TusFileUploadService.cleanup() calls DiskStorageService.cleanupExpiredUploads(...) and DiskLockingService.cleanupStaleLocks() Those methods throw "directory does not exist" exception if not a single upload was processed, because private method AbstractDiskBasedService.init() was never called.

How to fix:

Call AbstractDiskBasedService.init() inside DiskStorageService.cleanupExpiredUploads(...) and DiskLockingService.cleanupStaleLocks()

OverDrone avatar Apr 06 '21 22:04 OverDrone