removed ASL Session, ported to gCube Client Context

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134194 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-11-15 14:25:11 +00:00
parent 056e9adfca
commit dad4c8beb0
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class SmartGearsPortalValve extends ValveBase {
*/
public static String getCurrentUsername(HttpServletRequest httpServletRequest) {
String userIdNo = httpServletRequest.getHeader(PortalContext.USER_ID_ATTR_NAME);
if (userIdNo != null) {
if (userIdNo != null && userIdNo.compareTo("undefined") != 0) {
long userId = -1;
try {
userId = Long.parseLong(userIdNo);