mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
126885: Removed database connection leak on logout
(cherry picked from commit b299a96076
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
0a79903f30
commit
133c280883
@@ -45,7 +45,7 @@ public class CustomLogoutHandler implements LogoutHandler {
|
|||||||
try {
|
try {
|
||||||
Context context = ContextUtil.obtainContext(httpServletRequest);
|
Context context = ContextUtil.obtainContext(httpServletRequest);
|
||||||
restAuthenticationService.invalidateAuthenticationData(httpServletRequest, httpServletResponse, context);
|
restAuthenticationService.invalidateAuthenticationData(httpServletRequest, httpServletResponse, context);
|
||||||
context.commit();
|
context.complete();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Unable to logout", e);
|
log.error("Unable to logout", e);
|
||||||
|
Reference in New Issue
Block a user