Forget it, this simply can't work well for local files.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 14 Jun 2005 19:01:03 +0000 (19:01 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 14 Jun 2005 19:01:03 +0000 (19:01 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1622 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/ShibResource.java

index b615c2c..be7d6ec 100755 (executable)
@@ -44,15 +44,6 @@ public class ShibResource {
                        resource = requester.getResource(name);
                }
                if (resource == null) {
-                       // Try as a local file.
-                       File f = new File(name);
-                       if (f.canRead()) {
-                               try {
-                                       resource = f.toURL();
-                               }
-                               catch (MalformedURLException e) {
-                               }
-                       }
                        throw new ResourceNotAvailableException(
                                "ShibResource could not be found at the specified location: " + name);
                }