minor fix when logout is performed but session was expired

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@131740 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-09-23 10:53:48 +00:00
parent 3c0f371ef2
commit 228f4b4193
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ public class CkanLogout extends HttpServlet {
ASLSession session = getASLSession(httpSession);
String scope = (String) req.getSession().getAttribute(SessionCatalogueAttributes.SCOPE_CLIENT_PORTLET_URL);
String username = session.getUsername();
if(username.equals(GcubeCkanDataCatalogServiceImpl.TEST_USER))
return;
logger.info("CkanLogout performing...");
CkanConnectorAccessPoint ckanAP = SessionUtil.getCkanAccessPoint(req.getSession(), scope);
// String token = getGcubeSecurityToken();