Port fix for bug 41327. Show full URI for a 404.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 27 Jan 2007 21:14:06 +0000 (21:14 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 27 Jan 2007 21:14:06 +0000 (21:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@500622 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/servlet/JspServlet.java
webapps/docs/changelog.xml

index eb141ac..028e3e9 100644 (file)
@@ -306,7 +306,7 @@ public class JspServlet extends HttpServlet implements PeriodicEventListener {
                     // creating unnecessary directories and files.
                     if (null == context.getResource(jspUri)) {
                         response.sendError(HttpServletResponse.SC_NOT_FOUND,
-                                           jspUri);
+                                           request.getRequestURI());
                         return;
                     }
                     boolean isErrorPage = exception != null;
index 597efaa..7bc662b 100644 (file)
       <fix>
         Fix regression for implicit taglib and page data version numbers. (remm)
       </fix>
+      <fix>
+        <bug>41327</bug>: Show full URI for a 404. Patch provided by Vijay.
+        (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Webapps">