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:
parent
056e9adfca
commit
dad4c8beb0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue