mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-17 05:32:12 -05:00
error 500 when compare branches #1633
Closed
opened 2025-11-02 04:07:40 -06:00 by GiteaMirror
·
27 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.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.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
topic/ui
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#1633
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @msongz on GitHub (Mar 17, 2018).
@lunny commented on GitHub (Mar 17, 2018):
any log?
@msongz commented on GitHub (Mar 17, 2018):
could you tell me how to find the log you want ? @lunny
@jonasfranz commented on GitHub (Mar 19, 2018):
@msongz You will get the location of your logs on startup of gitea:
Please submit the last lines of the
gitea.logafter theerror 500occurs.@msongz commented on GitHub (Mar 19, 2018):
@JonasFranzDEV @lunny thanks!
@jonasfranz commented on GitHub (Mar 19, 2018):
@msongz I could not reproduce your issue. Could you please explain all steps which lead to the error? Please post your git version, gitea version and operating system too.
Do you use docker or binary?
@msongz commented on GitHub (Mar 19, 2018):
@JonasFranzDEV
I use binary with systemd on raspberry pi 2
gitea: 1.4.0+rc2-5-gc0e0fb7
git: git version 2.11.0
my step is quite simple, I have a repo with 2 branches in small differences,
after I into the compare page ,
left side was
piand right side alsopias the attached photothen I change the right side
pitozerowand got a 500 error@jonasfranz commented on GitHub (Mar 20, 2018):
@msongz I tested it on a raspberry pi 2 with 1.4.0+rc2-5-gc0e0fb7 and cannot reproduce it.
@msongz commented on GitHub (Mar 20, 2018):
@JonasFranzDEV
how about you clone my git to test again
https://github.com/msongz/dietpi-script.git
@jonasfranz commented on GitHub (Mar 20, 2018):
pi2 and zerow are entirely different commit histories.
@jonasfranz commented on GitHub (Mar 20, 2018):
But this should been shown instead of error 500.
@msongz commented on GitHub (Mar 20, 2018):
@JonasFranzDEV yes, they are separated;
sorry for the unclear situation
@mckaygerhard commented on GitHub (Mar 26, 2018):
seem this only happened in different repositories with differents branchs..
@jonasfranz commented on GitHub (Jun 15, 2018):
@lunny This issue is not actually a bug because showing an error is the right thing if the users sends an invalid request. We should mark this as
kind/uiand move it to1.6.0since only a UI change is required to resolve this issue.@mckaygerhard commented on GitHub (Jun 15, 2018):
please, please why not 1.5.X please!
@jonasfranz commented on GitHub (Jun 15, 2018):
@mckaygerhard We are currently overdue with the 1.5.0 release. And since we are in feature freeze since a month, we can't add this to 1.5.0. But we're trying to speed up our release cycle. So I hope that we will release 1.6.0 in a month including this improvement.
@lunny commented on GitHub (Apr 10, 2019):
fixed by #6555
@zeripath commented on GitHub (Apr 10, 2019):
So sorry this took so long to fix.
A number of things had to align to figure out what was the problem:
#6527 provided an excellent test case for me to work against and although you had properly described the problem the lack of a testcase makes it difficult.
The mainlining of the git module instead of it being a sub project meant there was no cross project change.
The improvements in the logging infrastructure meant that it was easier to figure out where the problem was being sent from. (Although it should have been easy to change this in the old infrastructure.)
@mckaygerhard commented on GitHub (Apr 10, 2019):
that's the problem with gitea, was for 1.5 then 1.6 so then was no due date!
too many releases and too few bugfixeds!
@zeripath commented on GitHub (Apr 10, 2019):
@mckaygerhard. I really don't appreciate this kind of comment. None of the maintainers or owners are paid to work on Gitea. I give up a lot of my free time to work on this project and that kind of comment is unhelpful in the extreme.
You are more than welcome to provide high quality PRs to fix issues you need, or when asked about your bugs to give concise and repeatable testcases.
As I said above, #6527 provided an excellent testcase that I was able to reproduce rapidly and test against to provide a fix in probably less than 30 minutes - although there was a certainly an element of the stars aligning. Good testcases certainly help.
Yes I appreciate the bug has been here for sometime. Yes that's not excellent. But it's a bug that dates from Gogs and is still present in Gogs.
Some appreciation of the hard work that we give you for free and some thanks wouldn't go amiss.
@mckaygerhard commented on GitHub (Apr 10, 2019):
hi @zeripath mi comment its due its ver frustrating for us the constants "upgrades",
we appreciated that gitea has many features.. but you taking about "paid to work" and "time" well there's too much time in more and more features, and less and less bugfixeds..
you have some level of right when said that mi comment are too hard, but i have some level of right when the answerd are always "upgrade to lasted"... please! gitea 1.0 was great for some people.. but then need to upgrade! and then upgrade.. and then we have a "microsoft style" life!
take in consideration due some of us (that obvilously loves gitea) relies on the OS vendors (as example AWS machines) so if i run a version of go that are not shipped with the OS (as example 1.10 in strech Debian) vendor limited their support..
so then i must use a gieta compiled agains the go vendor to property addressed bugs that does not comes from gitea.. could you understand the problem respect the "constants upgrades"
@lunny commented on GitHub (Apr 11, 2019):
@zeripath I think sometimes these bugs are not related with open source or not. Windows/Linux also have many such ten years or twenty years bugs. But of course all our maintainers/contributors spent many spare time on Gitea because we love her.
@mckaygerhard It's not fixed because not many gitea users encountered it or it has many limited conditions. If you encountered it frequently and cannot stand it, please don't complain and send a PR to fix it.
@mckaygerhard commented on GitHub (Apr 12, 2019):
thanks for your reply @lunny , i want to help but sorry i not have enought skills in golang.. take for sure if i have those skilss i'll take by myselft that problem! but unfortunatelly, i dont have those skills, i am a very contributor when i found a problem .. but currently i need that fix and i cannot do it by myselft!
many of us are in same problem! that's why i said "please less features and more fixeds without raising requirements".. thanks ..
due do you noted that issue are market as "closed"? but you said "it's not fixed" so what happened here?
@zeripath commented on GitHub (Apr 12, 2019):
It is fixed in master by pr #6555
@mckaygerhard commented on GitHub (Apr 12, 2019):
thaks for your fix @zeripath a question here important? will be backported for those have not 1.8 series of gitea? PLEASE?
@lunny commented on GitHub (Apr 12, 2019):
@mckaygerhard it has been back port to v1.8
@mckaygerhard commented on GitHub (Apr 12, 2019):
a well, i taking about and cited: "will be backported for those have not 1.8 series of gitea? PLEASE?" ?
@jolheiser commented on GitHub (Apr 12, 2019):
@mckaygerhard This will likely not be backported to 1.7.x as it relies on fairly major changes that will be introduced in 1.9.x (moving git to modules) and are already extra work just to backport to 1.8.x