tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1495043 - /tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java
Date Thu, 20 Jun 2013 15:07:55 GMT
Author: markt
Date: Thu Jun 20 15:07:55 2013
New Revision: 1495043

URL: http://svn.apache.org/r1495043
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54745
Fix JarScanning when Tomcat is started via Java WebStart.
Patch provided by Nick Williams.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java?rev=1495043&r1=1495042&r2=1495043&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java Thu Jun 20 15:07:55
2013
@@ -290,7 +290,8 @@ public class StandardJarScanner implemen
             callback.scan((JarURLConnection) conn, isWebapp);
         } else {
             String urlStr = url.toString();
-            if (urlStr.startsWith("file:") || urlStr.startsWith("jndi:")) {
+            if (urlStr.startsWith("file:") || urlStr.startsWith("jndi:") ||
+                urlStr.startsWith("http:") || urlStr.startsWith("https:")) {
                 if (urlStr.endsWith(Constants.JAR_EXT)) {
                     URL jarURL = new URL("jar:" + urlStr + "!/");
                     callback.scan((JarURLConnection) jarURL.openConnection(),



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message