diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java index 8c667b5..049f621 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java @@ -17,6 +17,7 @@ import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; import org.gcube.portlets.user.td.gwtservice.server.file.CSVFileUploadSession; import org.gcube.portlets.user.td.gwtservice.server.file.CodelistMappingFileUploadSession; import org.gcube.portlets.user.td.gwtservice.server.trservice.TRTasksManager; +import org.gcube.portlets.user.td.gwtservice.shared.Constants; import org.gcube.portlets.user.td.gwtservice.shared.codelisthelper.CodelistMappingMonitor; import org.gcube.portlets.user.td.gwtservice.shared.codelisthelper.CodelistMappingSession; import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVExportSession; @@ -88,8 +89,8 @@ public class SessionUtil { ASLSession session; if (username == null) { logger.warn("no user found in session, using test one"); - throw new TDGWTSessionExpiredException("Session Expired!"); - /* + /*throw new TDGWTSessionExpiredException("Session Expired!");*/ + username = Constants.DEFAULT_USER; String scope = Constants.DEFAULT_SCOPE; @@ -97,7 +98,7 @@ public class SessionUtil { session = SessionManager.getInstance().getASLSession( httpSession.getId(), username); session.setScope(scope); - */ + } else { session = SessionManager.getInstance().getASLSession( httpSession.getId(), username); diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/column/mapping/ColumnMappingList.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/column/mapping/ColumnMappingList.java index 1ed3d3d..76de388 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/column/mapping/ColumnMappingList.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/column/mapping/ColumnMappingList.java @@ -30,6 +30,8 @@ public class ColumnMappingList implements Serializable { */ public ColumnMappingList(String id, String name, ArrayList mapping) { + this.id=id; + this.name=name; this.mapping = mapping; }