Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor length-checking error message problem #28

Closed
meg23 opened this issue Nov 13, 2014 · 1 comment
Closed

Minor length-checking error message problem #28

meg23 opened this issue Nov 13, 2014 · 1 comment

Comments

@meg23
Copy link

meg23 commented Nov 13, 2014

From cyounk...@gmail.com on July 01, 2009 11:40:31

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: http://code.google.com/p/owasp-esapi-java/issues/detail?id=18

@meg23
Copy link
Author

meg23 commented Nov 13, 2014

From schal...@darkmist.net on November 16, 2009 19:30:59

Sorry. Fixed this one recently and didn't realize there was already an issue for it.
Looks like revision 814 .

Status: Fixed
Owner: schal...@darkmist.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant