-
Notifications
You must be signed in to change notification settings - Fork 259
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
1.5.2 broke my files route #164
Comments
You're serving files from your root path? Compojure 1.5.2 just updated Ring to fix a directory traversal bug, so I suspect you're running into the consequences of that. Do you have any symlinks on your path? You might need to add the |
yes, i am. this is just for testing purposes - i'm a complete clojure beginner just playing and discovering. adding :allow-symlinks indeed fixed the issue but in my case, no symlinks are involved - maybe a bug? |
It might be an issue specific to the root path. My guess is that if you tried any other If this is a bug related to the root path, it's something that will be fixed eventually, but as I'm sure you can appreciate, not exactly high priority since most of the time we don't want to serve files from the root :) |
yeah, that's possible. i'm just reporting because this is a breaking change which imho should not happen for .patch version release... ;-) i totally understand the priority. |
(route/files "/raw" {:root "/"})
...this works for me with 1.5.1 but returns "not found" for the same path in 1.5.2.
The text was updated successfully, but these errors were encountered: