From 228f4b41931f34338324b2a5466ccc2a03bcfc99 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Fri, 23 Sep 2016 10:53:48 +0000 Subject: [PATCH] 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 --- .../gcubeckan/gcubeckandatacatalog/server/CkanLogout.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/CkanLogout.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/CkanLogout.java index 1d922c1..a3dcefd 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/CkanLogout.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/CkanLogout.java @@ -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();