You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
3 years ago
..
authorizedkeys.go Refactor doctor (#12264) 4 years ago
dbconsistency.go Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 3 years ago
dbversion.go Refactor doctor (#12264) 4 years ago
doctor.go Refactor doctor (#12264) 4 years ago
mergebase.go Refactor doctor (#12264) 4 years ago
misc.go Refactor doctor (#12264) 4 years ago
paths.go Refactor doctor (#12264) 4 years ago
usertype.go Add Doctor FixWrongUserType (#14522) 3 years ago