changeset 270:89f6de49803d

Modified the method to create the document to trigger the out() operation of a collection in ClientProtocolUtils. artifacts/trunk@2046 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 03 Jun 2011 06:37:23 +0000
parents d9a99b28a847
children aa9f2f5ff032
files ChangeLog artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue May 31 14:53:36 2011 +0000
+++ b/ChangeLog	Fri Jun 03 06:37:23 2011 +0000
@@ -1,3 +1,10 @@
+2011-06-03  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java:
+	  The incoming attribute document of the method to create the document to
+	  trigger the out() of a collection needs to have the root node
+	  art:attribute now.
+
 2011-05-31  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/rest/BaseOutResource.java,
--- a/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java	Tue May 31 14:53:36 2011 +0000
+++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java	Fri Jun 03 06:37:23 2011 +0000
@@ -384,8 +384,7 @@
             ArtifactNamespaceContext.NAMESPACE_URI,
             ArtifactNamespaceContext.NAMESPACE_PREFIX);
 
-        Element action     = cr.create("action");
-        Element attributes = cr.create("attributes");
+        Element action = cr.create("action");
 
         cr.addAttr(action, "name", mode, true);
         cr.addAttr(action, "type", type, true);
@@ -396,8 +395,7 @@
             Node root = attr.getFirstChild();
 
             if (root != null) {
-                action.appendChild(attributes);
-                attributes.appendChild(doc.importNode(root, true));
+                action.appendChild(doc.importNode(root, true));
             }
         }
 

http://dive4elements.wald.intevation.org