500 error after migrating repository and deleting team from old organisation #25700
Labels
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
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
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
The text was updated successfully, but these errors were encountered: