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 Scott Sanders <sa...@totalsync.com> on 2001/01/11 00:58:33 UTC

[PATCH] PropFind.java

Here is the simple patch for PropFind.java so that the namespace on the
request is correct.  It corresponds to the patch previously submitted and
accepted for WebDAVXMLPrinter.java

I just updated this afternoon and did not see it, so this is why I am
submitting ;-)

Thanks
Scott Sanders

cvs diff -u

Index: PropFindMethod.java
===================================================================
RCS file:
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/me
thods/PropFindMethod.java,v
retrieving revision 1.11
diff -u -r1.11 PropFindMethod.java
--- PropFindMethod.java 2000/12/11 03:56:40     1.11
+++ PropFindMethod.java 2001/01/10 23:59:54
@@ -315,7 +315,7 @@

         WebdavXMLPrinter printer = new WebdavXMLPrinter();
         printer.writeXMLHeader();
-        printer.writeElement("D", "DAV", "propfind",
WebdavXMLPrinter.OPENING);
+        printer.writeElement("D", "DAV:", "propfind",
WebdavXMLPrinter.OPENING);

         switch (type) {
         case ALL:
@@ -336,7 +336,7 @@
             break;
         }

-        printer.writeElement("D", "DAV", "propfind",
WebdavXMLPrinter.CLOSING);
+        printer.writeElement("D", "DAV:", "propfind",
WebdavXMLPrinter.CLOSING);
         if (debug > 1) {
             System.out.println("Request body:");
             System.out.println(printer.toString());