Skip to content

Request changes on pull request results in server error 500 #7205

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

Closed
2 of 7 tasks
ChriFo opened this issue Jun 14, 2019 · 7 comments
Closed
2 of 7 tasks

Request changes on pull request results in server error 500 #7205

ChriFo opened this issue Jun 14, 2019 · 7 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug

Comments

@ChriFo
Copy link

ChriFo commented Jun 14, 2019

  • Gitea version: 1.8.2
  • Operating system: official docker setup
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Submitting a long comment to a code review with the button "request changes" leads into a 500 page. The following line in the file gitea.log appears in that moment:

2019/06/14 13:20:11 [.../repo/pull_review.go:163 SubmitReview()] [E] CreateReview: pq: value too long for type character varying(255)

I was able to fix the issue by manual changing the column type of content in the table public.review to just varchar (without limit).

The gitea setup is 6 month old and is continuously updated when a new version is arriving.

Maybe an other migration file is needed to have these changes for other "long-time" users as well.

@lunny lunny added the type/bug label Jun 14, 2019
@jeansergegagnon
Copy link

jeansergegagnon commented Jun 26, 2019

Not sure if this is same issue, but any pull request we have created shows a 500 error when trying to see the pull request once it is merged.

We are using Gitea Version: 1.9.0+dev-376-ge07ff2f89 and the log shows:

2019/06/25 11:01:14 routers/repo/pull.go:302:PrepareMergedViewPullInfo() [E] GetCompareInfo: exit status 128 - fatal: ambiguous argument 'b568d59d88af7ea7393d6ae2c9da09794a3c136d...refs/pull/4/head': unknown revision or path not in the working tree.
        Use '--' to separate paths from revisions, like this:
        'git <command> [<revision>...] -- [<file>...]'

If it helps, an open or closed pull request does show the list of changes, commits and comments as you'd expect, it's only once it's merged that the 500 error shows up

@stale
Copy link

stale bot commented Aug 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Aug 25, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Aug 25, 2019
@stale stale bot removed the issue/stale label Aug 25, 2019
@Ahaus314
Copy link

I have the same issue with version 1.9.4.
The interface say everything should be fine and when I try to execute the merge, I got an error 500 and this is the error message:
2019/10/15 11:16:20 routers/repo/pull.go:629:MergePullRequest() [E] Merge: git merge --no-ff --no-commit [<…>/ocal-repo/merge-663207900.git]: exit status 128 - From
* [new branch] -> head_repo/ error: Cannot update sparse checkout: the following entries are not up-to-date:

@guillep2k
Copy link
Member

Maybe this can help?
https://stackoverflow.com/a/56978142/225979

@zeripath
Copy link
Contributor

@Ahaus314 this is not the same issue. Your error is on merging not on adding a request changes comment.

You likely need to try a different merge strategy but I recommend you open a different issue.

@sbradl
Copy link

sbradl commented Oct 30, 2019

I have the same issue with version 1.9.4.
The interface say everything should be fine and when I try to execute the merge, I got an error 500 and this is the error message:
2019/10/15 11:16:20 routers/repo/pull.go:629:MergePullRequest() [E] Merge: git merge --no-ff --no-commit [<…>/ocal-repo/merge-663207900.git]: exit status 128 - From

  • [new branch] -> head_repo/ error: Cannot update sparse checkout: the following entries are not up-to-date:

Got the same error and opened a new issue #8744

@lunny
Copy link
Member

lunny commented Jan 29, 2021

I think this has been resolved and please feel free to reopen it.

@lunny lunny closed this as completed Jan 29, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Projects
None yet
Development

No branches or pull requests

7 participants