-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Prevent S3 global option when using custom endpoints (#5779)
Signed-off-by: Matthew Colpus <[email protected]> Co-authored-by: Matthew Colpus <[email protected]>
- Loading branch information
Showing
3 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ import static nextflow.processor.TaskProcessor.* | |
import java.nio.file.Path | ||
|
||
import groovy.transform.CompileStatic | ||
import groovy.util.logging.Slf4j | ||
import nextflow.Const | ||
import nextflow.ast.NextflowDSLImpl | ||
import nextflow.exception.AbortOperationException | ||
|
@@ -40,6 +41,7 @@ import nextflow.util.MemoryUnit | |
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
@Slf4j | ||
@CompileStatic | ||
class TaskConfig extends LazyMap implements Cloneable { | ||
|
||
|
@@ -392,10 +394,14 @@ class TaskConfig extends LazyMap implements Cloneable { | |
for( String it : shell ) { | ||
if( !it ) | ||
throw new IllegalArgumentException("Directive `process.shell` cannot contain empty values - offending value: ${shell}") | ||
if( !it || it.contains('\n') || it.contains('\r') ) | ||
throw new IllegalArgumentException("Directive `process.shell` cannot contain new-line characters - offending value: ${shell}") | ||
if( it.startsWith(' ') || it.endsWith(' ')) | ||
throw new IllegalArgumentException("Directive `process.shell` cannot contain leading or tralining blanks - offending value: ${shell}") | ||
if( !it || it.contains('\n') || it.contains('\r') ) { | ||
log.warn1 "Directive `process.shell` cannot contain new-line characters - offending value: ${shell}" | ||
break | ||
} | ||
if( it.startsWith(' ') || it.endsWith(' ')) { | ||
log.warn "Directive `process.shell` cannot contain leading or tralining blanks - offending value: ${shell}" | ||
break | ||
} | ||
} | ||
return shell | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters