The principal-property-search and principal-search-property-set reports return status 
200, but this should be 207 when a multistatus is returned. This patch changes the 
default return code from 200 to 207 in executeRequest, but I guess this could be done 
in executePrincipalSearchPropertyReport and executePrincipalSearchPropertySetReport 
respectively.

------
Rob Owen
SAS Institute Inc.
email: [EMAIL PROTECTED]

Index: ReportMethod.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v

retrieving revision 1.45
diff -u -r1.45 ReportMethod.java
--- ReportMethod.java   12 Aug 2002 12:55:02 -0000      1.45
+++ ReportMethod.java   24 Jan 2003 21:24:42 -0000
@@ -627,12 +627,12 @@
             }
             else if (R_PRINCIPAL_SEARCH_PROPERTY_SET.equals(requestedReport)) {
                 resultElement = new Element(R_PRINCIPAL_SEARCH_PROPERTY_SET, 
NamespaceCache.DEFAULT_NAMESPACE);
-                getResponse().setStatus(WebdavStatus.SC_OK);
+                getResponse().setStatus(WebdavStatus.SC_MULTISTATUS);
                 executePrincipalSearchPropertySetReport (requestUri, resultElement);
             }
             else if (R_PRINCIPAL_PROPERTY_SEARCH.equals(requestedReport)) {
                 //resultElement = new Element(E_MULTISTATUS, 
NamespaceCache.DEFAULT_NAMESPACE);
-                getResponse().setStatus(WebdavStatus.SC_OK);
+                getResponse().setStatus(WebdavStatus.SC_MULTISTATUS);
                 resultElement = executePrincipalSearchPropertyReport (getDepth());
                 
             }
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to