loading random bytes into CharFields
|Reported by:||rz_django@…||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Loading random bytes into CharFields is allowed - no error either when assigning the value or when saving the entry.. However, ANY further access to the item or anything with a onetomanyfield relation to this item will bomb with a fairly vague utf8 decoding error. The operation that actually loads the corrupted data into the CharField should generate the exception - bug hunting this way is completely impossible if any database error occurs in the wrong module at the wrong time.