In esapi.reference.validation, StringValidationRule.java:
Lines 99-102:
// check length
if (canonical.length() < minLength) {
throw new ValidationException( context + ": Invalid input. The maximum
length of " + maxLength + " characters was exceeded.", "Input exceeds
maximum allowed length of " + maxLength + " by " +
(canonical.length()-maxLength) + " characters: context=" + context + ",
type=" + getTypeName() + "), input=" + input, context );
}
The error message is incorrect. It should say something like: "The minimum
number of characters (" + minLength + ") was not met."
What version of the product are you using? On what operating system?
Latest SVN of ESAPI.
Original issue reported on code.google.com by cyounk...@gmail.com on 1 Jul 2009 at 3:40
Original issue reported on code.google.com by
cyounk...@gmail.com
on 1 Jul 2009 at 3:40