changeset 562:4df3347d6d1d

Removed trailing and leading Whitespaces from the Parametervalue which contains the XML-Document to avoid XML-Parsingerrors. gnv/trunk@668 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 09 Feb 2010 13:09:45 +0000
parents 3f39756e0c8a
children 0fc9cd280f1e
files gnv/ChangeLog gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Tue Feb 09 13:05:49 2010 +0000
+++ b/gnv/ChangeLog	Tue Feb 09 13:09:45 2010 +0000
@@ -1,5 +1,11 @@
 2010-02-09  Tim Englich  <tim.englich@intevation.de>
 
+	* src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java (execute): 
+	  Removed trailing and leading Whitespaces from the Parametervalue which 
+	  contains the XML-Document to avoid XML-Parsingerrors.
+
+2010-02-09  Tim Englich  <tim.englich@intevation.de>
+	
 	* src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java (createMetaDataRequestBody): 
 	  Fixed a NPE. Now it is possible to  put an Mapservice without an Layer into
 	  the Request-Document of am Mapviewer-Interface-Call.
--- a/gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java	Tue Feb 09 13:05:49 2010 +0000
+++ b/gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java	Tue Feb 09 13:09:45 2010 +0000
@@ -53,6 +53,7 @@
         InputStream inputStream = null;
         String documentvalue = request.getParameter("document");
         if (documentvalue != null){
+            documentvalue = documentvalue.trim();
             inputStream = new ByteArrayInputStream(documentvalue.getBytes());
         }else{
             inputStream = request.getInputStream();

http://dive4elements.wald.intevation.org