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 pn...@apache.org on 2003/11/17 18:08:44 UTC
cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method PropPatchMethod.java
pnever 2003/11/17 09:08:44
Modified: src/webdav/server/org/apache/slide/webdav/method
PropPatchMethod.java
Log:
Fixed minor bug.
Revision Changes Path
1.71 +8 -4 jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java
Index: PropPatchMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- PropPatchMethod.java 5 Nov 2003 14:24:34 -0000 1.70
+++ PropPatchMethod.java 17 Nov 2003 17:08:44 -0000 1.71
@@ -101,6 +101,7 @@
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.Namespace;
+import org.jdom.Text;
import org.jdom.output.XMLOutputter;
/**
@@ -721,7 +722,10 @@
protected RequestedProperty createRequestedProperty(String name, String namespacePrefix, String namespaceUri, List content) {
String value = "";
- if (content.size() > 0) {
+ if (content.size() == 1 && content.get(0) instanceof Text) {
+ value = ((Text)content.get(0)).getText();
+ }
+ else if (content.size() > 1) {
value = new XMLValue(content).toString();
}
// register prefix/URI at NamespaceCache
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org