Open GoogleCodeExporter opened 9 years ago
Is this still a problem with the latest release candidate 2.0rc10
Original comment by manico.james@gmail.com
on 2 Nov 2010 at 8:14
Yes, the issue as described would be the same in 2.0rc10.
I didn't see anything in the install guide that describes where things should
be placed in a war/ear.
Copying the configuration directory into the WEB-INF\lib directory isn't going
to work. Adding the suggested entry into the esapi.jar didn't seem to fix it.
I think the correct procedure here would be to:
1) copy/move the contents of the configuration directory to WEB-INF/classes
2) copy/move the contents of the lib directory and the esapi jar file to
WEB-INF/lib
This would result in the properties file being placed here:
/WEB-INF/classes/.esapi/ESAPI.properties
Different placement would be needed if the esapi jar file was placed further up
the directory structure of an ear and not loaded by the war classloader.
Original comment by brent.sh...@gmail.com
on 7 Nov 2010 at 3:49
Brent,
Regarding Comment #2...I'm not surprised there isn't anything mentioned in the
install guide. I'm pretty sure that hasn't been updated in ages. When the
classpath is searched, the logic is somewhat complicated as 3 different class
loaders are used in the search and a bunch of different places are searched in
the class path. (See
DefaultSecurityConfiguration.loadConfigurationFromClasspath() for details.) So
best way to see if this is fixed is to just have someone retest it. Also, if
you want to place ESAPI.properties in /WEB-INF/classes/.esapi, you could try
setting -Dorg.owasp.esapi.resources=/WEB-INF/classes/.esapi which I think it
should make it work. You could also place ESAPI.properties in the root
directory of your ear file and it should be found as well.
Original comment by kevin.w.wall@gmail.com
on 12 Feb 2011 at 7:30
Added component type.
Original comment by kevin.w.wall@gmail.com
on 12 Feb 2011 at 7:31
Original issue reported on code.google.com by
saadsha...@gmail.com
on 14 Sep 2010 at 7:14