{"action":"closed","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/64","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/64/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/64/events","html_url":"https://github.com/nextflow-io/nextflow/issues/64","id":99409411,"number":64,"title":"Channel.fromPath throws an exception when curly brackets pattern is specified ","user":{"login":"pditommaso","id":816968,"avatar_url":"https://avatars.githubusercontent.com/u/816968?v=3","gravatar_id":"","url":"https://api.github.com/users/pditommaso","html_url":"https://github.com/pditommaso","followers_url":"https://api.github.com/users/pditommaso/followers","following_url":"https://api.github.com/users/pditommaso/following{/other_user}","gists_url":"https://api.github.com/users/pditommaso/gists{/gist_id}","starred_url":"https://api.github.com/users/pditommaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pditommaso/subscriptions","organizations_url":"https://api.github.com/users/pditommaso/orgs","repos_url":"https://api.github.com/users/pditommaso/repos","events_url":"https://api.github.com/users/pditommaso/events{/privacy}","received_events_url":"https://api.github.com/users/pditommaso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nextflow-io/nextflow/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T10:54:11Z","updated_at":"2015-08-26T09:36:38Z","closed_at":"2015-08-26T09:36:38Z","body":"When `Channel.fromPath` argument is a non-default file system including a curly brackets glob pattern an exception is raised. For example: \r\n\r\n    Channel.fromPath('s3:///cbcrg-eu/nmdpflow-data/raw/**_R1*{fastq,fq,fastq.gz,fq.gz}') \r\n\r\nIt throws: \r\n\r\n\tjava.lang.IllegalArgumentException: Illegal character in path at index 39: s3:///cbcrg-eu/nmdpflow-data/raw/**_R1*{fastq,fq,fastq.gz,fq.gz}\r\n\t\tat java.net.URI.create(URI.java:852) ~[na:1.8.0_40]\r\n\t\tat nextflow.file.FileHelper.asPath(FileHelper.groovy:241) ~[nxf-commons-0.15.1.jar:na]\r\n\t\tat nextflow.extension.Bolts.asType(Bolts.groovy:340) ~[nxf-commons-0.15.1.jar:na]\r\n\t\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_40]\r\n\t\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_40]\r\n\t\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_40]\r\n\t\tat java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_40]\r\n\t\tat org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1206) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1015) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat groovy.runtime.metaclass.NextflowDelegatingMetaClass.invokeMethod(NextflowDelegatingMetaClass.java:73) ~[nextflow-0.15.1.jar:na]\r\n\t\tat org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:889) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:880) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat org.codehaus.groovy.runtime.ScriptBytecodeAdapter.asType(ScriptBytecodeAdapter.java:589) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat nextflow.Channel.fromPath(Channel.groovy:163) ~[nextflow-0.15.1.jar:na]\r\n\t\tat nextflow.Channel.fromPath(Channel.groovy) ~[nextflow-0.15.1.jar:na]\r\n\t\tat nextflow.Channel$fromPath.call(Unknown Source) ~[na:na]\r\n\t\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) ~[groovy-2.3.11.jar:2.3.11]\r\n\t\tat main.run(main.nf:35) ~[na:na]\r\n\t\tat nextflow.script.ScriptRunner.run(ScriptRunner.groovy:290) ~[nextflow-0.15.1.jar:na]\r\n\t\tat nextflow.script.ScriptRunner.execute(ScriptRunner.groovy:142) ~[nextflow-0.15.1.jar:na]\r\n\t\tat nextflow.cli.CmdRun.run(CmdRun.groovy:183) ~[nextflow-0.15.1.jar:na]\r\n\t\tat nextflow.cli.Launcher.run(Launcher.groovy:377) [nextflow-0.15.1.jar:na]\r\n\t\tat nextflow.cli.Launcher.main(Launcher.groovy:520) [nextflow-0.15.1.jar:na]\r\n\tCaused by: java.net.URISyntaxException: Illegal character in path at index 39: s3:///cbcrg-eu/nmdpflow-data/raw/**_R1*{fastq,fq,fastq.gz,fq.gz}\r\n\t\tat java.net.URI$Parser.fail(URI.java:2848) ~[na:1.8.0_40]\r\n\t\tat java.net.URI$Parser.checkChars(URI.java:3021) ~[na:1.8.0_40]\r\n\t\tat java.net.URI$Parser.parseHierarchical(URI.java:3105) ~[na:1.8.0_40]\r\n\t\tat java.net.URI$Parser.parse(URI.java:3053) ~[na:1.8.0_40]\r\n\t\tat java.net.URI.<init>(URI.java:588) ~[na:1.8.0_40]\r\n\t\tat java.net.URI.create(URI.java:850) ~[na:1.8.0_40] "}}