batchu / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
0 stars 0 forks source link

Typo in DefaultValidator.getValidFileName #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In DefaultValidator.java, inside getValidFileName(), there is this call on
line 420.

throw new ValidationException( context + ": Invalid file name", "Invalid
directory name does not match the canonical path: context=" + ....

What is the expected output? What do you see instead?

It should say "Invalid file name" instead of "Invalid directory name" in
the logged message.

What version of the product are you using? On what operating system?

Latest SVN.

Original issue reported on code.google.com by cyounk...@gmail.com on 8 Jul 2009 at 2:37

GoogleCodeExporter commented 8 years ago
The exception is stating that the directory name does not match, cpath is the
canonical path up to the last file seperator, so this logging is correct. 
Marking as
a non-issue

Original comment by chrisisbeef on 2 Dec 2009 at 7:05