Mercurial > dive4elements > framework
changeset 220:ecfc33a4ba3d
Bugfix: Creating new ArtifactCollection will create artifact collections with empty - but not null - attributes.
artifacts/trunk@1563 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 24 Mar 2011 17:43:45 +0000 |
parents | cabe4c02ab64 |
children | f75f83af19e0 |
files | ChangeLog artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Mar 24 16:16:51 2011 +0000 +++ b/ChangeLog Thu Mar 24 17:43:45 2011 +0000 @@ -1,3 +1,11 @@ +2011-03-24 Ingo Weinzierl <ingo@intevation.de> + + * artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java: + The CREATE document for used for creating new ArtifactCollections will + build an ArtifactCollection with an empty attribute - but it is no + longer null (which broke the XML parser while fetching the + ArtifactCollection from backend). + 2011-03-24 Ingo Weinzierl <ingo@intevation.de> * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
--- a/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java Thu Mar 24 16:16:51 2011 +0000 +++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java Thu Mar 24 17:43:45 2011 +0000 @@ -211,12 +211,14 @@ Element action = cr.create("action"); Element type = cr.create("type"); Element collection = cr.create("collection"); + Element attribute = cr.create("attribute"); cr.addAttr(type, "name", "create"); cr.addAttr(collection, "name", name != null ? name : ""); action.appendChild(type); type.appendChild(collection); + collection.appendChild(attribute); doc.appendChild(action);