-
-
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
[1.17/1.18] 500 Error viewing branch after PR merge with non-numeric External Issue Tracker enabled #20109
Comments
I did some more testing and realized that when the External Issue Tracker is turned off, the issue goes away. I can now reproduce the issue on try.gitea.io (https://try.gitea.io/jared-nussbaum-frbb/Gitea-Demo) |
After further investigation I figured out that any non-numeric issue format (Alphanumeric/Alphanumeric Regex) with the external tracking setting will break the code page If referencing the numeric PR number with the (!) in the commit name. |
- This code is only valid when `refNumeric` exist(otherwise we didn't find such numeric PR and can skip that check) and give a free-pas to the "BEFORE" check when `ref` is nil. - Resolves go-gitea#20109
- Backport (go-gitea#20277 - This code is only valid when `refNumeric` exist(otherwise we didn't find such numeric PR and can skip that check) and give a free-pas to the "BEFORE" check when `ref` is nil. - Resolves go-gitea#20109
- This code is only valid when `refNumeric` exist(otherwise we didn't find such numeric PR and can skip that check) and give a free-pas to the "BEFORE" check when `ref` is nil. - Resolves #20109
- This code is only valid when `refNumeric` exist(otherwise we didn't find such numeric PR and can skip that check) and give a free-pas to the "BEFORE" check when `ref` is nil. - Resolves go-gitea#20109
- This code is only valid when `refNumeric` exist(otherwise we didn't find such numeric PR and can skip that check) and give a free-pas to the "BEFORE" check when `ref` is nil. - Resolves go-gitea#20109
Description
When I merge branch through a PR the branch receiving the merge commit seems to be unable to render. The originating branch renders fine. The logs that show up are the following:
When I force push on main with a commit before the PR, the rendering of main continues fine. It also doesn't seem to effect traversal into the repository's folders, just the top level view. Edit: This 500 error only occurs when an external issue tracker is used with Alphanumeric selected when the PR is created. I think it might have to do with the
(!9)
added to the commit name.500 error can be seen here: https://try.gitea.io/jared-nussbaum-frbb/Gitea-Demo
Steps to reproduce:
(!<number>)
in the commit name.Gitea Version
1.17.0+rc1
1.18.0+dev-47-g91b21473a (on demo site)
Can you reproduce the bug on the Gitea demo site?
NoYES https://try.gitea.io/jared-nussbaum-frbb/Gitea-DemoLog Gist
No response
Screenshots
No response
Git Version
git version 2.36.1
Operating System
No response
How are you running Gitea?
I am running Gitea through docker.
Database
SQLite
The text was updated successfully, but these errors were encountered: