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

This commit is contained in:
abhishek 2010-11-16 11:46:55 -08:00
parent fa2b3e70a3
commit 92e3dc91c4

View File

@ -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());