From b1755b6a1395940f4548910cfc3d83e1996b2d06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Mon, 12 Jul 2010 21:15:35 +0000
Subject: [PATCH] - tentatively debugged MultiPartRequests

---
 src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java b/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java
index 77c74013..d8bcea3e 100644
--- a/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java
+++ b/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java
@@ -195,12 +195,11 @@ public class HTMLAServProfile implements AlignmentServiceProfile {
 			// if no FilterConfig
 			// e.g., it uses /tmp and keeps the files
 			filter.doFilter( request, dummyResponse, new Chain() );
-			// Extract parameters from response
-			if ( request.getAttribute("pretty") != null )
-			    params.setProperty( "pretty", request.getAttribute("pretty").toString() );
+			// Apparently a bug from Jetty prevents from retrieving this
+			if ( request.getParameter("pretty") != null )
+			    params.setProperty( "pretty", request.getParameter("pretty").toString() );
 			if ( request.getAttribute("content") != null )
 			    params.setProperty( "filename", request.getAttribute("content").toString() );
-			//System.err.println( " >>>> Read: "+params.getProperty( "pretty" ) );
 			filter.destroy();
 		    } else if ( mimetype != null && mimetype.startsWith("text/xml") ) {
 			// Most likely Web service request (REST through POST)
-- 
GitLab