You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Remy Maucherat <re...@exoffice.com> on 2000/05/22 19:55:27 UTC
Error pages in Catalina
I have a slight problem with Catalina and DAV right now.
When the response status is not 200, Catalina appends an error page to the
response (StandardWrapperValve.status(request, response)). It seems that the
StringManager is now more robust, and returns something even if the string
doesn't exist, so an error page is always appended ...
A PROPFIND request, which is usually status 207 (Multistatus) now has an
entity body which looks like this :
<?xml version="1.0" encoding="utf-8" ?>
<d:multistatus xmlns:d="DAV:"><d:response><d:href>/</d:href>
<d:propstat><d:prop><d:displayname xmlns:d="DAV:">/</d:displayname>
<d:resourcetype xmlns:d="DAV:"><d:collection/></d:resourcetype>
<getcontentlength>0</getcontentlength>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat><d:prop><getcontenttype/><getlastmodified/></d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
<d:response><d:href>/users/</d:href>
<d:propstat><d:prop><d:displayname xmlns:d="DAV:">/users</d:displayname>
<d:resourcetype xmlns:d="DAV:"><d:collection/></d:resourcetype>
<getcontentlength>0</getcontentlength>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat><d:prop><getcontenttype/><getlastmodified/></d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
<d:response><d:href>/actions/</d:href>
<d:propstat><d:prop><d:displayname xmlns:d="DAV:">/actions</d:displayname>
<d:resourcetype xmlns:d="DAV:"><d:collection/></d:resourcetype>
<getcontentlength>0</getcontentlength>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat><d:prop><getcontenttype/><getlastmodified/></d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
</d:multistatus>
<html>
<head>
<title>Tomcat Error Report</title>
</head>
<body bgcolor="white">
<br><br>
<h1>HTTP Status 207 - HTTP Response Status 207</h1>
cannot find message associated with key : http.207
</body>
</html>
I suggest we don't generate an error page for anything under 400 anyway.
Remy