|
54 | 54 | import org.labkey.api.view.HttpView; |
55 | 55 | import org.labkey.api.view.JspView; |
56 | 56 | import org.labkey.api.view.NavTree; |
| 57 | +import org.labkey.api.view.NotFoundException; |
57 | 58 | import org.labkey.api.view.RedirectException; |
58 | 59 | import org.labkey.api.view.ViewBackgroundInfo; |
59 | 60 | import org.labkey.api.view.template.PageConfig; |
|
95 | 96 | import java.io.IOException; |
96 | 97 | import java.net.URI; |
97 | 98 | import java.nio.file.Files; |
| 99 | +import java.nio.file.InvalidPathException; |
98 | 100 | import java.nio.file.Path; |
99 | 101 | import java.util.ArrayList; |
100 | 102 | import java.util.Arrays; |
@@ -370,8 +372,15 @@ protected ModelAndView confirmRuns(ImportRunsForm form, BindException errors) |
370 | 372 | { |
371 | 373 | validatePipeline(); |
372 | 374 |
|
373 | | - collectNewPaths(form, errors); |
374 | | - return new JspView<PipelinePathForm>("/org/labkey/flow/controllers/executescript/confirmRunsToImport.jsp", form, errors); |
| 375 | + try |
| 376 | + { |
| 377 | + collectNewPaths(form, errors); |
| 378 | + return new JspView<PipelinePathForm>("/org/labkey/flow/controllers/executescript/confirmRunsToImport.jsp", form, errors); |
| 379 | + } |
| 380 | + catch (InvalidPathException e) |
| 381 | + { |
| 382 | + throw new NotFoundException(e.getMessage()); |
| 383 | + } |
375 | 384 | } |
376 | 385 |
|
377 | 386 | protected ModelAndView uploadRuns(ImportRunsForm form, BindException errors) throws Exception |
@@ -985,7 +994,7 @@ private void accelerateWizard(ImportAnalysisForm form, BindException errors, Run |
985 | 994 |
|
986 | 995 | // Set the data folder if we aren't using an existing run |
987 | 996 | if (SelectFCSFileOption.None == form.getSelectFCSFilesOption()) |
988 | | - form.setKeywordDir(new String[]{getWorkspaceFolder(form).toString()}); |
| 997 | + form.setKeywordDir(new String[]{getPipeRoot().relativePath(getWorkspaceFolder(form))}); |
989 | 998 |
|
990 | 999 | // Select FCS file (by default we already select all fcs files in working folder) |
991 | 1000 | stepSelectFCSFiles(form, errors); |
|
0 commit comments