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=7836>. 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=7836 PROPFIND response is not correct for "no namespace" properties Summary: PROPFIND response is not correct for "no namespace" properties Product: Slide Version: Nightly Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: WebDAV Server AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] PROPFIND does not produce the correct XML for properties that have no namespace. The property output ignores the namespace and the property is then seen to be part of the default namespace (DAV:), used on the multistatus element. The propperty element should reset the namespace for the property (eg. <propwithnons xmlns="">Value</propwithnons>). The following fix to org.apache.util.XMLPrinter fixes this immediate problem (as a result of Slide's use of a default namespace in the multistatus response). --- XMLPrinter.java Mon Apr 8 14:41:05 2002 +++ XMLPrinter.orig.java Mon Apr 8 14:40:52 2002 @@ -1,5 +1,5 @@ /* - * $Header: /home/cvs/jakarta-slide/src/util/org/apache/util/XMLPrinter.java,v 1.7 2002/03/28 06:12:06 jericho Exp $ + * $Header: /home/cvspublic/jakarta- slide/src/util/org/apache/util/XMLPrinter.java,v 1.7 2002/03/28 06:12:06 jericho Exp $ * $Revision: 1.7 $ * $Date: 2002/03/28 06:12:06 $ * @@ -248,7 +248,7 @@ } else { switch (type) { case OPENING: - if ((namespaceInfo != null)) { + if ((namespaceInfo != null) && (namespaceInfo.length()>0)) { buffer.append("<" + name + " xmlns=\"" + namespaceInfo + "\">"); } else { @@ -260,7 +260,7 @@ break; case NO_CONTENT: default: - if ((namespaceInfo != null)) { + if ((namespaceInfo != null) && (namespaceInfo.length()>0)) { buffer.append("<" + name + " xmlns=\"" + namespaceInfo + "\"/>"); } else { -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
