From: markt Date: Wed, 2 Mar 2011 13:23:37 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=27988 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=10558bc0821e23eb411df4a35a425e4a5cfd75e7;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=27988 Improve reporting of missing files git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1076212 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/naming/resources/DirContextURLConnection.java b/java/org/apache/naming/resources/DirContextURLConnection.java index 76278f8ad..89e54fe0d 100644 --- a/java/org/apache/naming/resources/DirContextURLConnection.java +++ b/java/org/apache/naming/resources/DirContextURLConnection.java @@ -342,7 +342,8 @@ public class DirContextURLConnection if (object != null) return object; - throw new FileNotFoundException(); + throw new FileNotFoundException( + getURL() == null ? "null" : getURL().toString()); } @@ -378,7 +379,8 @@ public class DirContextURLConnection connect(); if (resource == null) { - throw new FileNotFoundException(); + throw new FileNotFoundException( + getURL() == null ? "null" : getURL().toString()); } // Reopen resource @@ -418,7 +420,8 @@ public class DirContextURLConnection } if ((resource == null) && (collection == null)) { - throw new FileNotFoundException(); + throw new FileNotFoundException( + getURL() == null ? "null" : getURL().toString()); } Vector result = new Vector(); @@ -446,7 +449,8 @@ public class DirContextURLConnection } } catch (NamingException e) { // Unexpected exception - throw new FileNotFoundException(); + throw new FileNotFoundException( + getURL() == null ? "null" : getURL().toString()); } } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index f88862b8e..7e52d4b2f 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -46,6 +46,9 @@ + 27988: Improve reporting of missing files. (markt) + + 28852: Add URL encoding where missing to parameters in URLs presented by Ant tasks to the Manager application. Based on a patch by Stephane Bailliez. (mark)