#30064: Admin search with a null character crashes with "A string literal cannot
contain NUL (0x00) characters." on PostgreSQL
-------------------------------+------------------------------------
     Reporter:  kenichi-cc     |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  2.1
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by Simon Charette):

 Hello Carl, it does look more appropriate. The page field should probably
 be a `forms.IntegerField` and you shouldn't have to perform any form of
 manual check for `'\x00'` as `forms.CharField` already has a
 `ProhibitNullCharactersValidator`. We'll have to find a way to surface the
 exception appropriately because raising it at `ChangeList` initialization
 will just result in a different crash.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30064#comment:10>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.f4e2dc39e689bc2a9fdd1506ca02e0d1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to