Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception if cleanup called before any request handled #39

Open
OverDrone opened this issue Apr 6, 2021 · 0 comments
Open

Exception if cleanup called before any request handled #39

OverDrone opened this issue Apr 6, 2021 · 0 comments

Comments

@OverDrone
Copy link

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()

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

No branches or pull requests

1 participant