DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10301>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10301 500 Error doing propfind with null namespace Summary: 500 Error doing propfind with null namespace Product: Slide Version: 1.0.16 Stable Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: WebDAV client AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In 1.0.16 through the nightly build: Calling the PropFindMethod in the client to find a property defined via PropertyName(null, "proptofind") or PropertyName("", "proptofind") results in a 500 error from the server. The cause appears to be an invalid XML in the generated XML. PropfindMethod.generateQuery() produces: <?xml version=�1.0� encoding=�utf-8� ?> <D:propfind xmlns:D=�DAV:�> <D:prop><ZZ:proptofind/></D:prop> </D:propfind> in this case (the "ZZ" prefix is undefined). Changing if ("DAV:".equals(namespace)) { printer.writeElement("D", localname, XMLPrinter.NO_CONTENT); } else { printer.writeElement("ZZ", namespace,localname , XMLPrinter.NO_CONTENT); } to if ("DAV:".equals(namespace)) { printer.writeElement("D", localname, XMLPrinter.NO_CONTENT); } else { if (namespace.length()>0){ printer.writeElement("ZZ", namespace,localname , XMLPrinter.NO_CONTENT); } else { printer.writeElement(null, null, localname , XMLPrinter.NO_CONTENT); } } in generateQuery() would generate valid XML and fix the bug (assuming that a default namespace hasn't been defined, which is currently the case). -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
