-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Files with identical base names cause storage file collision #210
Comments
Hi @tunecrew, Thank you for reaching out. I am curious, is that happening on S3 or in local development? If it's happening on S3, is you Meanwhile, I will try reproducing this. Best Joe |
Hm… so, I did some investigation. HTTP allows multiple files with the same name in a single request. However, since we don't rename files, this approach does not work currently. We'd need to introduce subfolders for each file, to mitigate this issue. I will work on this, since I found something related to this, that also needs my attention. |
Hi - it happens locally (haven't tried it in production yet) - but my local dev environment is dockerised and uses Minio for S3, so I think the behaviour should mimic a production environment. A couple thoughts based on your response:
|
Hi @tunecrew, I never took the time to properly thank you. Your bug report helped uncover a pretty substantial security bug. I credited you in the CVE, so you've probably seen it. Still, thank you again for. That was really helpful. However, I believe the patch did not solve your particular issue. Did you happen to make any progress on this meanwhile, or do you want me to have a got at it? Cheers, Joe |
You're very welcome! I haven't revisited it in a bit as I got sidetracked on another project, but I will be back on it this fall so I'll let you know. |
Uncovered an interesting behaviour/bug? when uploading multiple files that have the same filename. Behaves as follows:
multiple
set toTrue
select 2 or more files with the same exact file name (this is possible on MacOs at least if the files are in different folders, but the file chooser modal is set to a parent folder of these folders - see screenshot for example).tmp
folder.n
different files, thenn
copies of the single uploaded file are copied from thetmp
folder to their final destination, so instead ofn
different files with the same name, you end up withn
copies of just one of the files.I haven't dug in deeper yet.
The text was updated successfully, but these errors were encountered: