harini-nagarajan-5578 / owasp-esapi-java

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

ESAPI throws a FileNotFoundException #228

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add the ESAPI.properties to the classloader path that it will throw an 
exception
There is an order that ESAPI tries to load the ESAPI.properties. The properties 
file is loaded but an exception is always thrown when the last option to load 
the properties file is from the classloader. The exception is not thrown when I 
define the ESAPI.properties at resources or /home/.esapi. I removed the full 
exception stack because it was on other post.
[6/1/11 15:09:44:559 BST] 00000027 SystemOut O Not found in 'user.home' (/root) 
directory: /root/esapi/ESAPI.properties
[6/1/11 15:09:44:560 BST] 00000027 SystemOut O Loading ESAPI.properties via 
file I/O failed. Exception was: java.io.FileNotFoundException
[6/1/11 15:09:44:590 BST] 00000027 SystemOut O Attempting to load 
ESAPI.properties via the classpath.
[6/1/11 15:09:44:598 BST] 00000027 SystemOut O SUCCESSFULLY LOADED 
ESAPI.properties via the CLASSPATH from '/ (root)' using current thread context 
class loader!

What is the expected output? What do you see instead?
I expect a message that file is loading but there ESAPI throw a exception before

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

Does this issue affect only a specified browser or set of browsers?

Please provide any additional information below.
I sent this issue to forum and Chris Schmidt asked me to open it as a issue

Original issue reported on code.google.com by ricardo....@gmail.com on 18 Jun 2011 at 5:39

GoogleCodeExporter commented 8 years ago

Original comment by chrisisbeef on 23 Jul 2011 at 8:31