﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35627	LocaleMiddleware does not handle ValueError 'lang_code' exceeds the maximum accepted length	Lorenzo Peña	Lorenzo Peña	"Try any Django powered site where LocaleMiddleware is enanled and visit domain.com/aaaaaaaaaaa.... (where there are 1000 'a'). 
This line kicks in: https://github.com/django/django/blob/main/django/utils/translation/trans_real.py#L520

I think the outcome should be a 404 instead of raising ValueError all the way up."	Bug	closed	Internationalization	5.0	Release blocker	fixed			Ready for checkin	1	0	0	0	0	0
