#35627: LocaleMiddleware does not handle ValueError 'lang_code' exceeds the 
maximum
accepted length
-------------------------------------+-------------------------------------
     Reporter:  Lorenzo Peña         |                    Owner:  Lorenzo
                                     |  Peña
         Type:  Bug                  |                   Status:  closed
    Component:                       |                  Version:  5.0
  Internationalization               |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"0e94f292cda632153f2b3d9a9037eb0141ae9c2e" 0e94f29]:
 {{{#!CommitTicketReference repository=""
 revision="0e94f292cda632153f2b3d9a9037eb0141ae9c2e"
 Fixed #35627 -- Raised a LookupError rather than an unhandled ValueError
 in get_supported_language_variant().

 LocaleMiddleware didn't handle the ValueError raised by
 get_supported_language_variant() when language codes were
 over 500 characters.

 Regression in 9e9792228a6bb5d6402a5d645bc3be4cf364aefb.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35627#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190e8d414fb-811f09ca-0ded-422e-a50e-b38e33b486a6-000000%40eu-central-1.amazonses.com.

Reply via email to