-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
[2.2.x] Symphony breaks on certain URLs #872
Comments
I found out that it also breaks on question marks, like so: |
I vaguely remember that this has been discussed berfore. It has to do with the url-param getting added to the XML. Symphony will create invalid nodes like |
Might it be related that |
As far as I see, when retrieving the url-param, & and ? will be removed by Symphony. But this procedure is error-prone if no valid characters follow, resulting in invalid nodes like |
Have made 'bad' params not be added to the XML which prevents this error from occurring. As |
Cool, thanks! |
(Symphony 2.2.5, Windows XP, XAMPP 1.7.4) http://localhost/domain/?%C9 breaks and results in XSLT error. Once again the <url-/ /> appears: XSLT Processing Error This page could not be rendered due to the following XSLT processing errors.
|
Don't know if it's related but : http://localhost/?: also breaks with a slightly different error. XSLTProcessor::transformToXml(): runtime error If this is done on http://localhost/workspace/bootstrap/img/?: I get a full backtrace with Symphony Fatal Error and all informations coming with it like database information. |
I can confirm on both accounts, This will be fixed for 2.3. Out of curiosity, how are you getting these URL's? |
It's just some random testing. By the way, all special encoded characters break symphony.
And many more. Thanks. |
A second approach regarding the Also, it fixes the issue where |
I've spent a couple of hours debugging tonight to figure out what was going wrong and how to fix it. Issue 1: Issue 2: When using a URL like Issue 3: This one came along on the ride and was the biggest brain-breaker: When using a URL like Well to make a long story short, my last commit fixes the issues of Symphony crashing on weird URL's, so I hope we can check that one of our list now... ;-) I'll try to make a clean pull request, but just like my previous pull requests it keeps on pushing 11 previous commits, although there are only 3 files changed :-/ |
please merge from TwistedInteractive@c2ab6f5 because I can't seem to make a decent pull request. Each time I try to make a pull request I got a list of commits of several months ago, but the files changed are only 3 files... Can anybody please explain my why this is? Or point me to an article on how to decently setup a pull request? I'm now spending more time for setting up this pull request that it took me to fix this bug! This take the fun out of coding for me! I just ... don't ... GET IT!!!! Why are there 12 commits when only 3 files are changed?!?!?!?! |
It's because your history is different the main integration branch Typically I create a new branch to do fixes in and then before merging
Here's a Github article on rebasing. |
fixed it! The problem was indeed that the history of my origin/integration branch wasn't in sync with upstream/integration. |
Attempt 2: only validate the XML input for URL-parameters
Using a URL like
http://example.com/&/
, Symphony breaks with an XSLT error like the following:This behaviour must have been introduced between 2.1.2.1 (no problem) and 2.2.2 (problem confirmed). It is alive in the current 2.2.x branch.
The text was updated successfully, but these errors were encountered: