commit | 8ab1f64c65b451467c4498a3cdadb0025e7ec566 | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Tue Oct 30 22:19:58 2007 +0000 |
committer | Karl Pauls <pauls@apache.org> | Tue Oct 30 22:19:58 2007 +0000 |
tree | 7a5dad9bf3e27c760b28cc682bcf2f59000eabcc | |
parent | a2372882ea69777dcc2291d7e3f26e8f07afa1e0 [diff] |
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). git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@590492 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java b/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java index 709f2ae..c09725e 100644 --- a/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java +++ b/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
@@ -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();)