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()) {
logger.info("No open tr in session");
} else {
logger.debug("Current Tabular Open In session: "+aslSession.getScope()+", trList: "+openList);
for (TabResource tabResource : openList) {
if (tabResource != null
&& tabResource.getTrId() != null

View File

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

View File

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