My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 40: Tests to ensure field values not too long are at wrong level
1 person starred this issue and may be notified of changes. Back to list
 
Reported by matt.d.ryan, Aug 21, 2008
Some plasmature elements (textarea, loki, and loki2) test the input string
and, if it is too long to fit into the database field associated with the
form element, trigger a disco error (thereby preventing the form from being
processed). This functionality is nice, and can prevent unnoticed data
truncation.

However, this is a dumb way of doing it, because this should be a general
feature of (presumably) disco, and not be dependent on whether it happens
to be implemented in the particular plasmature class itself. In addition,
the classes are not using complete field definition lists or more
sophisticated parsing of the field definition, so they wouldn't catch
VARCHAR overflows -- just TEXT/TINYTEXT/MEDIUMTEXT overflows.
 
Sign in to add a comment

Hosted by Google Code