# HG changeset patch # User Ingo Weinzierl # Date 1302079224 0 # Node ID 6ef6acf30d660cb0e7d13054feab3512ee4fa257 # Parent 3e29395ebac6509eaaaa4fc90d59a46f6657e695 Bugfix: Decompress CollectionItems when they are fetched from Backend. artifacts/trunk@1646 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 3e29395ebac6 -r 6ef6acf30d66 ChangeLog --- 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 + + * 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 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: diff -r 3e29395ebac6 -r 6ef6acf30d66 artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultCollectionItem.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;