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/routers
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
..
admin Update docs and comments to remove macaron (#14491) 3 years ago
api/v1 Add support for ref parameter to get raw file API (#14602) 3 years ago
dev Display ui time with customize time location (#7792) 5 years ago
events Add EventSource support (#11235) 4 years ago
org Move macaron to chi (#14293) 3 years ago
private Move macaron to chi (#14293) 3 years ago
repo Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 3 years ago
routes Adding Chi's GetHead middleware (#14541) 3 years ago
user Honor REGISTER_MANUAL_CONFIRM when doing openid registration (#14548) 3 years ago
utils Return the full rejection message and errors in flash errors (#13221) 4 years ago
home.go [Feature] add precise search type for Elastic Search (#12869) 3 years ago
init.go Print usefull error if SQLite is used in settings but not supported (#14476) 3 years ago
install.go Move middlewares to web/middleware (#14480) 3 years ago
metrics.go Move metrics from macaron to chi (#13601) 4 years ago
swagger_json.go Move macaron to chi (#14293) 3 years ago