Closed 134130 closed 6 days ago
Thank you for reporting this. I opened https://github.com/tus/tusd/pull/1149 to fix this by including a check in filelocker
. I agree with your concerns that this might not be the best place for this check as filelocker should not directly rely on the folder structure that is created by the filestore. However, this is currently already the case and filelocker will put the .lock file next to the .info file in the directory created by filestore. We can revisit this architecture in the future and decide if we want to decouple them more.
Describe the bug
To Reproduce Steps to reproduce the behavior:
http://127.0.0.1:8080/basedir
curl 127.0.0.1:8080/basedir/some/your/sub-directory/file.jpeg
msg=InternalServerError
message="open <Eliminated>/some/your/sub-directory/file.jpeg.lock.1967546860: no such file or directory"
Expected behavior
Setup details Please provide following details, if applicable to your situation:
v2.4.0
curl
.func lockUpload()
, the lock is abstracted, so it also doesn't look like proper to handle "no file" too.