From ceaaf254df2f1d2e120d1f91063b9b0ad2c3cc15 Mon Sep 17 00:00:00 2001 From: vagisha Date: Tue, 23 May 2023 09:12:49 -0700 Subject: [PATCH] Set ExpRun's filePathRoot to be the container's file root (#724) Set ExpRun's filePathRoot to be the container's file root. --------- Co-authored-by: labkey-martyp --- src/org/labkey/targetedms/TargetedMSManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/labkey/targetedms/TargetedMSManager.java b/src/org/labkey/targetedms/TargetedMSManager.java index af1013ca9..9807db0a2 100644 --- a/src/org/labkey/targetedms/TargetedMSManager.java +++ b/src/org/labkey/targetedms/TargetedMSManager.java @@ -55,6 +55,7 @@ import org.labkey.api.exp.api.ExpProtocol; import org.labkey.api.exp.api.ExpRun; import org.labkey.api.exp.api.ExperimentService; +import org.labkey.api.files.FileContentService; import org.labkey.api.module.Module; import org.labkey.api.module.ModuleLoader; import org.labkey.api.module.ModuleProperty; @@ -692,12 +693,11 @@ private static ExpRun wrapRun(TargetedMSRun run, User user, PipeRoot pipeRoot, I } ExpData expData = ExperimentService.get().getExpData(run.getDataId()); - Path skylineFile = pipeRoot.resolveToNioPathFromUrl(expData.getDataFileUrl()); ExpRun expRun = ExperimentService.get().createExperimentRun(container, run.getDescription()); expRun.setProtocol(protocol); expRun.setJobId(jobId); - expRun.setFilePathRootPath(null != skylineFile ? skylineFile.getParent() : null); + expRun.setFilePathRootPath(FileContentService.get().getFileRootPath(container, FileContentService.ContentType.files)); ViewBackgroundInfo info = new ViewBackgroundInfo(container, user, null); Map inputDatas = new HashMap<>();