Closed michael-conway closed 6 years ago
input params from log
2017-12-14 13:42:00 DEBUG HttpResponseHandlerInterceptor:80 - added user prefs to model as 'dataGridUser':DataGridUser [id=1, dataGridId=10016, username=test1, additionalInfo=zone1, enabled=true, locale=en, forceFileOverwriting=false, userType=rodsadmin, advancedView=false, bookmarks=[], favorites=[]]
2017-12-14 13:42:08 INFO UploadController:102 - upload()
2017-12-14 13:42:08 INFO UploadController:115 - multipartFile:org.springframework.web.multipart.commons.CommonsMultipartFile@6c0ed6c7
2017-12-14 13:42:08 INFO UploadController:124 - parsed parameters...
2017-12-14 13:42:08 INFO UploadServiceImpl:69 - upload()
2017-12-14 13:42:08 INFO UploadServiceImpl:77 - file:org.springframework.web.multipart.commons.CommonsMultipartFile@6c0ed6c7
2017-12-14 13:42:08 INFO UploadServiceImpl:78 - targetPath:/zone1/home/test1/boo
2017-12-14 13:42:08 INFO UploadServiceImpl:79 - computeCheckSum:false
2017-12-14 13:42:08 INFO UploadServiceImpl:80 - replicateFile:false
2017-12-14 13:42:08 INFO UploadServiceImpl:81 - replicationResc:undefined
2017-12-14 13:42:08 INFO UploadServiceImpl:82 - destResc:undefined
2017-12-14 13:42:08 INFO UploadServiceImpl:83 - overwrite:true
2017-12-14 13:42:08 INFO UploadServiceImpl:95 - Setting default resource to undefined
2017-12-14 13:42:08 INFO UploadServiceImpl:115 - targetFile:irods://test1@docker.for.mac.localhost:1247/zone1/home/test1/boo/niehs_dev_commons.sh
2017-12-14 13:42:08 INFO UploadServiceImpl:127 - transfer complete, compute checksum if required
2017-12-14 13:42:08 INFO UploadServiceImpl:138 - getting resourceMap for upload
2017-12-14 13:42:08 WARN ResourceAOImpl:616 - unable to format resourceFreeSpac
this falls into code here in UploadServiceImpl
// Getting list of resources for upload
HashMap<String, String> resourceMap = null;
logger.info("getting resourceMap for upload");
ResourceAO resourceAO = is.getResourceAO();
resourceMap = DataGridUtils.buildMapForResourcesNamesAndMountPoints(resourceAO.findAll());
String objPath = targetFile.getCanonicalPath();
logger.info("getting file path");
String filePath = resourceMap.get(destResc) + objPath.substring(objPath.indexOf("/", 1), objPath.length());
logger.info("file path:{}", filePath);
logger.info("get resource based on dest:{}", destResc);
DataGridResource dgDestResc = resourceService.find(destResc);
String host = dgDestResc.getHost();
logger.info("executing rules...");
rs.execBamCramMetadataRule(host, objPath, filePath);
rs.execVCFMetadataRule(host, objPath, filePath);
rs.execPopulateMetadataRule(host, objPath);
rs.execImageRule(host, objPath, filePath);
rs.execIlluminaMetadataRule(dgDestResc, targetPath, objPath);
rs.execManifestFileRule(host, targetPath, objPath, filePath);
logger.info("rules executed");
isFileUploaded = true;
File upload, in UploadController, calling UploadService. See logs
NB many of these resources have an empty resource host.