1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers/repo
zeripath f82b1dd7c3
Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623)
* Prevent adding nil label to .AddedLabels or .RemovedLabels

There are possibly a few old databases out there with malmigrated data that can
cause panics with empty labels being migrated.

This PR adds a few tests to prevent nil labels being added.

Fix #14466

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add doctor command to remove the broken label comments

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
2021-02-10 10:50:44 +08:00
..
activity.go
attachment.go
blame.go
branch.go
commit.go
compare.go
download.go
editor_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
editor.go enhancement: add signoff option in commit form (#14516) 2021-01-29 16:57:45 +08:00
http.go
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 2020-01-20 13:00:32 +01:00
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go Refactor combine label comments with tests (#13619) 2020-11-20 17:29:09 -05:00
issue_timetrack.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
issue_watch.go Fix PR/issue redirects when having external tracker (#9339) 2019-12-14 01:53:32 +01:00
issue.go Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 2021-02-10 10:50:44 +08:00
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
projects_test.go KanBan: be able to set default board (#14147) 2021-01-15 22:29:32 +02:00
projects.go
pull_review.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
pull.go Move middlewares to web/middleware (#14480) 2021-01-30 10:55:53 +02:00
release_test.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
release.go
repo.go
search.go
setting_protected_branch.go
setting.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
settings_test.go
topic.go
view.go
webhook.go
wiki_test.go
wiki.go