Skip to content
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

500 error after migrating repository and deleting team from old organisation #25700

Closed
satr-cowi opened this issue Jul 5, 2023 · 2 comments
Closed
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@satr-cowi
Copy link

satr-cowi commented Jul 5, 2023

Description

We migrated a repository to a new organisation, and then deleted the team in the old organisation (and made a new replacment team in the new one). Pull requests that requested a review from the deleted team now cannot be viewed and just show a 500 error.

Error occurs in rendering the review_requested comment, as the team now comes back as "Null"

"2023/06/30 13:05:07 ...s/context/context.go:224:HTML() [E] Render failed: template: repo/issue/view_content/comments:737:72: executing "repo/issue/view_content/comments" at <.AssigneeTeam.Name>: nil pointer evaluating *models.Team.Name"

Data can all still be accessed from API (showing that the AssigneeTeam comes back as Null, just not rendering the web page)

Gitea Version

1.16.9

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

_

Operating System

Windows

How are you running Gitea?

Run on an internal windows server, using a gitea download from the website.

Database

PostgreSQL

@wxiaoguang
Copy link
Contributor

It should have been fixed in latest releases.

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Jul 5, 2023
@GiteaBot
Copy link
Collaborator

GiteaBot commented Sep 8, 2023

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot GiteaBot closed this as completed Sep 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

3 participants