Skip to content

Commit

Permalink
Fix issue where importing from the pipeline root doesn't properly ass…
Browse files Browse the repository at this point in the history
…ociate fcs files with the wsp

Add a base relative root for the keywordPath
Add a check to prevent NPE
switch from deprecated method
  • Loading branch information
labkey-ians committed Nov 20, 2024
1 parent 5af4bf4 commit 6bf3a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ private void stepSelectAnalysis(ImportAnalysisForm form, BindException errors)
if (relPath != null)
{
String[] parts = StringUtils.split(relPath, File.separatorChar);
String keywordPath = StringUtils.join(parts, "/");
String keywordPath = "./" + StringUtils.join(parts, "/");
form.setKeywordDir(new String[] { keywordPath });
}
form.setSelectFCSFilesOption(SelectFCSFileOption.Browse);
Expand Down
2 changes: 1 addition & 1 deletion flow/src/org/labkey/flow/script/KeywordsTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static List<FlowRun> importFlowRuns(PipelineJob job, FlowProtocol protoco
PipeRoot pr = PipelineService.get().findPipelineRoot(job.getContainer());

KeywordsJob keywordsJob = new KeywordsJob(job.getInfo(), protocol, paths, targetStudyContainer, pr);
keywordsJob.setLogFile(job.getLogFile());
keywordsJob.setLogFile(job.getLogFilePath());
keywordsJob.setLogLevel(job.getLogLevel());
keywordsJob.setSubmitted();

Expand Down

0 comments on commit 6bf3a48

Please sign in to comment.