-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Text replacing issues in post requests #6655
Comments
Hmm on try that appears to be working. Could you attempt to replicate on try? |
https://try.gitea.io/marcs/bug_test/compare/master...issue%232 If you just try to create a pull request to merge "issue#2" into "master" i got a error 404 |
Ah I see! Sorry I just did that! |
And if you look at the URL when getting the error it replaces %232 (which represents #2 correctly) with %25232. |
I just noticed another issue try creating a file using the editor with a new branch say #3. You're redirected to something awful too. |
Yeah, we also saw that problem! So it suggests it's somewhere in http text replacement. |
OK, so this one is due to:
Here the link is being twice escaped. |
I'm fairly certain that that should never need to be EscapePounded |
So, creating that template under |
yeah |
I'm gonna try it tomorrow then. |
The other bug I mentioned should be fixed by #6657 |
[x]
):Description
https://try.gitea.io/marcs/bug_test/compare/master...issue%232
If we try to pull-request branch "issue#N" into "master" we got error 404.
We can see from the log on our own server (caption below) that the issue is with the post request text replacing %23N (#N) by %2523N.
...
Screenshots
Apr 16 17:15:02 rd1 gitea[19212]: [Macaron] 2019-04-16 17:15:02: Started GET /DSP/Prometheus/compare/develop...feature/issue%235 for 127.0.0.1
Apr 16 17:15:02 rd1 gitea[19212]: [Macaron] 2019-04-16 17:15:02: Completed GET /DSP/Prometheus/compare/develop...feature/issue%235 200 OK in 190.126663ms
Apr 16 17:15:06 rd1 gitea[19212]: [Macaron] 2019-04-16 17:15:06: Started POST /DSP/Prometheus/compare/develop...feature/issue%25235 for [::1]
Apr 16 17:15:06 rd1 gitea[19212]: [Macaron] 2019-04-16 17:15:06: Completed POST /DSP/Prometheus/compare/develop...feature/issue%25235 404 Not Found in 53.722988ms
The text was updated successfully, but these errors were encountered: