Fixes that custom values length and attachment size validation error raises an error.
Authored by: jplang 2009-04-08
Parent: [r2666]
Child: [r2668]