mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix AR-730
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3317 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -645,19 +645,29 @@ public class SessionImpl implements Session
|
||||
if (isLive())
|
||||
{
|
||||
// invalidate authentication
|
||||
getRepositoryImpl().getServiceRegistry().getAuthenticationService().invalidateTicket(getTicket());
|
||||
ticket = null;
|
||||
|
||||
// clean up resources
|
||||
try
|
||||
{
|
||||
sessionIsolation.rollback();
|
||||
try
|
||||
{
|
||||
getRepositoryImpl().getServiceRegistry().getAuthenticationService().invalidateTicket(getTicket());
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
sessionIsolation.rollback();
|
||||
}
|
||||
catch(RepositoryException e)
|
||||
{
|
||||
// continue execution and force logout
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(RepositoryException e)
|
||||
finally
|
||||
{
|
||||
// force logout
|
||||
ticket = null;
|
||||
repository.deregisterSession();
|
||||
}
|
||||
repository.deregisterSession();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user