Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@95624 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
47f37eb0f0
commit
bf9f845004
|
@ -39,6 +39,7 @@ import org.gcube.data.analysis.tabulardata.commons.webservice.types.TaskStatus;
|
|||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.ValidationDescriptor;
|
||||
import org.gcube.data.analysis.tabulardata.expression.Expression;
|
||||
import org.gcube.data.analysis.tabulardata.metadata.NoSuchMetadataException;
|
||||
import org.gcube.data.analysis.tabulardata.model.column.Column;
|
||||
|
@ -186,8 +187,7 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
||||
//import java.io.IOException;
|
||||
//import net.sf.csv4j.ParseException;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -2519,6 +2519,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
logger.debug("File Url On Storage:" + fileUrlOnStorage);
|
||||
fileUploadSession.getCsvFile().delete();
|
||||
|
||||
if(fileUrlOnStorage==null || fileUrlOnStorage.isEmpty()){
|
||||
throw new TDGWTServiceException(
|
||||
"Tabular Data Service error loading file on storage");
|
||||
}
|
||||
|
||||
|
||||
Map<String, Object> parameterInstance = csvImportFileParameter(
|
||||
fileUrlOnStorage, fileUploadSession, csvImportSession);
|
||||
|
||||
|
@ -6211,7 +6217,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
for (Job job : task.getTaskJobs()) {
|
||||
int i = 1;
|
||||
ArrayList<Validations> validations = new ArrayList<Validations>();
|
||||
for (Validation val : job.getValidations()) {
|
||||
for (ValidationDescriptor val : job.getValidations()) {
|
||||
Validations validation = new Validations(String.valueOf(i),
|
||||
val.getDescription(), val.isValid());
|
||||
validations.add(validation);
|
||||
|
|
Loading…
Reference in New Issue