[Bug 353165] remove a directory check for directories of jar files,

rational being that some users wish to point to unpacked jar files
using symbolic links and this was preventing that behavior
This commit is contained in:
Jesse McConnell 2011-07-29 11:21:13 -05:00
parent c2cf8077b3
commit 062feb4750
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ jetty-7.5.0-SNAPSHOT
+ 352786 GzipFilter fails to pass parameters to GzipResponseWrapper
+ 353073 WebSocketClient
+ 353095 maven-jetty-plugin: PermGen leak due to javax.el.BeanELResolver
+ 353165 addJars can follow symbolic link jar files
+ 353210 Bundle-Version in o.e.j.o.boot.logback fix
jetty-7.4.4.v20110707 July 7th 2011

View File

@ -264,7 +264,8 @@ public class WebAppClassLoader extends URLClassLoader
{
Resource fn=lib.addPath(files[f]);
String fnlc=fn.getName().toLowerCase();
if (!fn.isDirectory() && isFileSupported(fnlc))
// don't check if this is a directory, see Bug 353165
if (isFileSupported(fnlc))
{
String jar=fn.toString();
jar=StringUtil.replace(jar, ",", "%2C");