Author: markt
Date: Wed Mar 2 13:23:37 2011
New Revision: 1076212
URL: http://svn.apache.org/viewvc?rev=1076212&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=27988
Improve reporting of missing files
Modified:
tomcat/trunk/java/org/apache/naming/resources/DirContextURLConnection.java
tomcat/trunk/webapps/docs/changelog.xml
Modified:
tomcat/trunk/java/org/apache/naming/resources/DirContextURLConnection.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/resources/DirContextURLConnection.java?rev=1076212&r1=1076211&r2=1076212&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/resources/DirContextURLConnection.java
(original)
+++ tomcat/trunk/java/org/apache/naming/resources/DirContextURLConnection.java
Wed Mar 2 13:23:37 2011
@@ -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<String> result = new Vector<String>();
@@ -446,7 +449,8 @@ public class DirContextURLConnection
}
} catch (NamingException e) {
// Unexpected exception
- throw new FileNotFoundException();
+ throw new FileNotFoundException(
+ getURL() == null ? "null" : getURL().toString());
}
}
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1076212&r1=1076211&r2=1076212&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 2 13:23:37 2011
@@ -46,6 +46,9 @@
<subsection name="Catalina">
<changelog>
<fix>
+ <bug>27988</bug>: Improve reporting of missing files. (markt)
+ </fix>
+ <fix>
<bug>28852</bug>: 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]