Skip to content

Commit 92e3dc9

Browse files
author
abhishek
committed
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
1 parent fa2b3e7 commit 92e3dc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/api/ApiServlet.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void processRequest(HttpServletRequest req, HttpServletResponse resp) {
248248
auditTrailSb.insert(0, "(userId="+UserContext.current().getUserId()+ " accountId="+UserContext.current().getAccountId()+ " sessionId="+(session != null ? session.getId() : null)+ ")" );
249249

250250
try {
251-
String response = _apiServer.handleRequest(params, false, responseType, auditTrailSb);
251+
String response = _apiServer.handleRequest(params, true, responseType, auditTrailSb);
252252
writeResponse(resp, response != null ? response : "", false, responseType);
253253
} catch (ServerApiException se) {
254254
auditTrailSb.append(" " +se.getErrorCode() + " " + se.getDescription());

0 commit comments

Comments
 (0)