felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r590492 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
Date Tue, 30 Oct 2007 22:20:03 GMT
Author: pauls
Date: Tue Oct 30 15:19:58 2007
New Revision: 590492

URL: http://svn.apache.org/viewvc?rev=590492&view=rev
Log:
Change how the extension manager url stream handler handles request to the root path in order
to make some tomcat issue go away (FELIX-414).

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java?rev=590492&r1=590491&r2=590492&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java Tue
Oct 30 15:19:58 2007
@@ -512,7 +512,13 @@
 
         if (path.trim().equals("/"))
         {
-            throw new IOException("Resource not provided by any extension!");
+            return new URLConnection(url) 
+            {
+                public void connect() throws IOException 
+                {
+                    throw new IOException("Resource not provided by any extension!");
+                }
+            };
         }
 
         for (Iterator iter = m_extensions.iterator(); iter.hasNext();)



Mime
View raw message