You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2014/08/28 19:58:12 UTC
[08/50] git commit: updated refs/heads/master to 97ed5ff
ApiServlet: Fix NPE while inserting to auditTrail
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2694ad7b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2694ad7b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2694ad7b
Branch: refs/heads/master
Commit: 2694ad7bd91671629831f9feede879cb24d05d69
Parents: a1dc9e8
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Mon Aug 18 03:50:18 2014 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Thu Aug 28 19:45:21 2014 +0200
----------------------------------------------------------------------
server/src/com/cloud/api/ApiServlet.java | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2694ad7b/server/src/com/cloud/api/ApiServlet.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java
index 5484b1e..8dff6eb 100644
--- a/server/src/com/cloud/api/ApiServlet.java
+++ b/server/src/com/cloud/api/ApiServlet.java
@@ -201,9 +201,6 @@ public class ApiServlet extends HttpServlet {
} catch (final IllegalStateException ignored) {
}
}
- } else {
- auditTrailSb.insert(0, "(userId=" + session.getAttribute("userid") + " accountId=" + ((Account) session.getAttribute("accountobj")).getId() +
- " sessionId=" + session.getId() + ")");
}
HttpUtils.writeHttpResponse(resp, responseString, httpResponseCode, responseType);
return;