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
Static module: get prefix from fixed params explicitly #809
Conversation
Static module: get prefix from fixed params explicitly
Who controls @revelframework twitter account? Can v0.11.2 bugfix release be announced? Those who use revel in production are recommended to upgrade it ASAP. From a dozen of projects only two are not affected by the bug. |
How did this cause a vulnerability? I thought that #503 was fixed a long time ago. |
@brendensoares, 👍 |
This fix broke the Static.ServeModule for my included modules. It is using a relative path from my main applications public folder and not the path of the module folder. My modules contain public folders and were included in the routes like The directory structure was With this change it looks for the file in the mainapp folder which is unexpected. |
@notzippy, unfortunately you are right. I didn't pay attention to the fact that |
@AnonX Looking for dec 1 deployment, will be testing in next few days in the wild though |
@notzippy Then there are a few options:
I personaly use the 4th option: |
I can make the changes to file itself, but the issue may be else were, currently Serve is being called instead of ServeModule for the module in question.. I am trying to track this down. Do you have access to the irc channel rather then filing this log :-) ? If not that is fine I can continue back tracing to see were things are going wrong. Currently the router appears to be creating the route properly... |
@AnonX looking at the road map, v.12 is going to be a while yet - I think we should release the change to fix static includes sooner as opposed to later. @brendensoares what are your thoughts ? |
I've been out of the loop for a bit too long. I'm not sure what the issue is here, though I trust it's a real issue. Could I have some steps to reproduce this along with the expected results versus the actual results? That way I can better contribute to the conversation. I have to catch up on a lot of other issues, so I'll watch for this thread. Thanks. |
@brendensoares |
@AnonX I read through the related issues and now I see what's happening. Hope most people are using nginx or the like 😞 |
Fix for static module files #809
We have discussed it with @pushrax. I'll add additional details to this PR a bit later.