changeset 236:6ef6acf30d66

Bugfix: Decompress CollectionItems when they are fetched from Backend. artifacts/trunk@1646 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 06 Apr 2011 08:40:24 +0000
parents 3e29395ebac6
children 23ec48ce717e
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultCollectionItem.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Apr 04 09:28:54 2011 +0000
+++ b/ChangeLog	Wed Apr 06 08:40:24 2011 +0000
@@ -1,3 +1,10 @@
+2011-04-06  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultCollectionItem.java:
+	  Bugfix: Items are compressed in the Backend while adding an Artifact to
+	  a Collection. So this item needs to be decompressed when it is fetched
+	  from Backend again. This is done now!
+
 2011-04-04	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultCollectionItem.java	Mon Apr 04 09:28:54 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultCollectionItem.java	Wed Apr 06 08:40:24 2011 +0000
@@ -37,7 +37,7 @@
     public synchronized Document getAttribute() {
         if (document == null) {
             if (data != null) {
-                document = XMLUtils.fromByteArray(data);
+                document = XMLUtils.fromByteArray(data, true);
             }
         }
         return document;

http://dive4elements.wald.intevation.org