Update of /var/cvs/applications/resources/src/org/mmbase/servlet
In directory james.mmbase.org:/tmp/cvs-serv18306
Modified Files:
FileServlet.java
Log Message:
I think 403 is a bit clearer then 404 in these cases
See also:
http://cvs.mmbase.org/viewcvs/applications/resources/src/org/mmbase/servlet
Index: FileServlet.java
===================================================================
RCS file:
/var/cvs/applications/resources/src/org/mmbase/servlet/FileServlet.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- FileServlet.java 17 Dec 2008 07:11:10 -0000 1.10
+++ FileServlet.java 17 Dec 2008 08:55:18 -0000 1.11
@@ -26,7 +26,7 @@
* Straight-forward filter which can serve files from one directory (the
directory 'files' in the
* mmbase 'datadir') outside the web application root.
*
- * @version $Id: FileServlet.java,v 1.10 2008/12/17 07:11:10 michiel Exp $
+ * @version $Id: FileServlet.java,v 1.11 2008/12/17 08:55:18 michiel Exp $
* @author Michiel Meeuwissen
* @since MMBase-1.9
* @see AttachmentServlet
@@ -120,7 +120,7 @@
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String pi = req.getPathInfo();
if (ignores(pi)) {
- resp.sendError(HttpServletResponse.SC_NOT_FOUND, "The file '" + pi
+ "' is not served");
+ resp.sendError(HttpServletResponse.SC_FORBIDDEN, "The file '" + pi
+ "' is explicitely ignored by the file servlet.");
return;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs