# HG changeset patch # User Ingo Weinzierl # Date 1307083043 0 # Node ID 89f6de49803d749482c470f4f709affaf6a6b3c6 # Parent d9a99b28a8473d8a928bc24320eba185979c6a13 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 diff -r d9a99b28a847 -r 89f6de49803d ChangeLog --- 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 + + * 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 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/BaseOutResource.java, diff -r d9a99b28a847 -r 89f6de49803d artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.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)); } }