-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cannot use / in url params #31223
Comments
It turns out symphony has a way to configure the regex used to match a parameter: https://symfony.com/doc/current/routing/slash_in_parameter.html |
That means our resource urls are generated without this. |
GitMate.io thinks possibly related issues are #883 (Can't use 'n' character in url for 'New > From Link'), #30097 (Logout URL doesn't work if using reverse proxy), #20414 (Can't use HTTPS: "URL /index.php/apps/files/ not found"), #23880 (How to use Pretty URL ?), and #16694 (No CardDav URL provided). |
Are there any cases where
and if you create a group called
to try and find out about that nasty-named user. |
@paurakhsharma please try with #31224 |
Steps to reproduce
/resource/{id}
/
. it should be urlencoded, so the url in a request will look like/resource/id%2Fwith%2Fslashes
Expected behaviour
The controller should get
id/with/slashes
as a parameter.Actual behaviour
The controller is never called because the url never matches.
AllowEncodedSlashes On
to the virtualhosts section. Otherwise you get an immediate 404 without php ever seeing the requestAllowEncodedSlashes On
the url gets decoded in Symphonys URLMatcher. In the worst case this might cause calling the wrong route.Related
owncloud-archive/user_management#20 (comment)
The text was updated successfully, but these errors were encountered: