Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public List<EntryPoint> getEntryPoints() {

public int getNowRunningCount() {
Collection<EntryPoint> entryPointsCollection = entryPoints.values();
int ret = 0;
long ret = 0;
if (entryPointsCollection.size() > 0) {
for (EntryPoint ep : entryPointsCollection) {
ret += ep.getCurrentRequestCount();
}
}
return ret;
return (int) Math.min(ret, Integer.MAX_VALUE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha

// Reset auth cookie for cases it was corrupted (encryption key is changed or something like that)
Cookie authCookie = new Cookie(AuthConstants.AUTH_COOKIE_NAME, "");
authCookie.setHttpOnly(true);
authCookie.setSecure(httpServletRequest.isSecure());
authCookie.setMaxAge(0);
httpServletResponse.addCookie(authCookie);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public ActionCommand execute(ActionMapping mapping, HttpServletRequest req, Http
}

Cookie authCookie = new Cookie(AuthConstants.AUTH_COOKIE_NAME, encryptedAuthCookie);
authCookie.setHttpOnly(true);
authCookie.setSecure(req.isSecure());
authCookie.setMaxAge(AUTH_COOKIE_AGE);
res.addCookie(authCookie);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public ActionCommand execute(ActionMapping mapping, HttpServletRequest req, Http

req.getSession().removeAttribute(AuthConstants.AUTH_SESSION_ATTR_NAME);
Cookie authCookie = new Cookie(AuthConstants.AUTH_COOKIE_NAME, "");
authCookie.setHttpOnly(true);
authCookie.setSecure(req.isSecure());
authCookie.setMaxAge(0);
res.addCookie(authCookie);

Expand Down
Loading