#24319: UUIDField do not properly clean (validate) value in get_db_prep_value
-------------------------------------+-------------------------------------
Reporter: davidfischer-ch | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.8alpha1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: clean,uuid | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by timgraham):
I am not sure the contract for `get_prep_value()` says that it will
prevent queries for invalid values like you've stated. Is there any
documentation to support that assertion? A similar error can be trigger on
other fields:
{{{
>>> GenericIPAddress.objects.filter(ip='baz')
DataError: invalid input syntax for type inet: "baz"
LINE 1: ...ess" WHERE "model_fields_genericipaddress"."ip" = 'baz'::ine...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24319#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.8956592493320cf4b9a91c161f125d87%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.