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 bu...@apache.org on 2002/04/08 16:01:32 UTC
DO NOT REPLY [Bug 7836] New: -
PROPFIND response is not correct for "no namespace" properties
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: slide-dev@jakarta.apache.org
ReportedBy: eurrow@sas.com
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>