Fixed error on clone

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@111409 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-01-16 17:18:07 +00:00
parent 9e1809883a
commit 088db38f39
3 changed files with 9 additions and 3 deletions

View File

@ -508,6 +508,7 @@ public class SessionUtil {
if (openList == null || openList.isEmpty()) { if (openList == null || openList.isEmpty()) {
logger.info("No open tr in session"); logger.info("No open tr in session");
} else { } else {
logger.debug("Current Tabular Open In session: "+aslSession.getScope()+", trList: "+openList);
for (TabResource tabResource : openList) { for (TabResource tabResource : openList) {
if (tabResource != null if (tabResource != null
&& tabResource.getTrId() != null && tabResource.getTrId() != null

View File

@ -610,10 +610,10 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
SessionUtil.setTRId(session, tabResource.getTrId()); SessionUtil.setTRId(session, tabResource.getTrId());
logger.debug("New Active: " + tabResource.getTrId()); logger.debug("New Active: " + tabResource.getTrId());
} else { } else {
logger.error("Set Active Tabular Resource failed, no valid id!: " logger.error("Set Active Tabular Resource failed, no valid id: "
+ activeTRId); + activeTRId);
throw new TDGWTServiceException( throw new TDGWTServiceException(
"Set Active Tabular Resource failed, no valid id!"); "Set Active Tabular Resource failed, no valid id: ");
} }
return tabResource.getTrId(); return tabResource.getTrId();

View File

@ -318,7 +318,12 @@ public class OperationMonitorCreator {
SessionUtil.setTRId(session, trId); SessionUtil.setTRId(session, trId);
SessionUtil.addToCurrentTabularResourcesOpen(session,tabResource); SessionUtil.addToCurrentTabularResourcesOpen(session,tabResource);
break; break;
case Clone:
trId = new TRId();
trId.setId(taskWrapper.getTrId().getId());
trId = retrieveTabularResourceBasicData(trId);
operationMonitor.setTrId(trId);
break;
default: default:
trId = new TRId(); trId = new TRId();
trId.setId(taskWrapper.getTrId().getId()); trId.setId(taskWrapper.getTrId().getId());