cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [17/52] git commit: updated refs/heads/saml2 to 1d809ff
Date Mon, 25 Aug 2014 15:36:13 GMT
ApiServlet: Fix NPE while inserting to auditTrail

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b91b38fe
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b91b38fe
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b91b38fe

Branch: refs/heads/saml2
Commit: b91b38fef47ebb746c4599a000381967b9106cd5
Parents: 2ae7df3
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Mon Aug 18 03:50:18 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Aug 25 17:33:25 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/b91b38fe/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;


Mime
View raw message