1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/modules/doctor
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
..
authorizedkeys.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
dbconsistency.go Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 2021-02-10 10:50:44 +08:00
dbversion.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
doctor.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
mergebase.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
misc.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
paths.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
usertype.go Add Doctor FixWrongUserType (#14522) 2021-01-29 19:30:43 +01:00