From 92e3dc91c46bda5c2f40e272dc52b8182d53a12b Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 16 Nov 2010 11:46:55 -0800 Subject: [PATCH] found a bug in the code where we were not decoding the params sent in eg. "a b" was being stored in the db as 'a%20b'. Fixing the same to have the right val persisted to the db --- server/src/com/cloud/api/ApiServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java index 5bd9ebeb1be..1aad2119417 100755 --- a/server/src/com/cloud/api/ApiServlet.java +++ b/server/src/com/cloud/api/ApiServlet.java @@ -248,7 +248,7 @@ public class ApiServlet extends HttpServlet { auditTrailSb.insert(0, "(userId="+UserContext.current().getUserId()+ " accountId="+UserContext.current().getAccountId()+ " sessionId="+(session != null ? session.getId() : null)+ ")" ); try { - String response = _apiServer.handleRequest(params, false, responseType, auditTrailSb); + String response = _apiServer.handleRequest(params, true, responseType, auditTrailSb); writeResponse(resp, response != null ? response : "", false, responseType); } catch (ServerApiException se) { auditTrailSb.append(" " +se.getErrorCode() + " " + se.getDescription());