karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-5493) InvalidPathException is thrown when execute config:property-set command from ssh client
Date Tue, 21 Nov 2017 20:29:00 GMT

     [ https://issues.apache.org/jira/browse/KARAF-5493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré updated KARAF-5493:
----------------------------------------
    Fix Version/s: 4.2.0
                   4.1.4

> InvalidPathException is thrown when execute config:property-set command from ssh client
> ---------------------------------------------------------------------------------------
>
>                 Key: KARAF-5493
>                 URL: https://issues.apache.org/jira/browse/KARAF-5493
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config, karaf-shell
>    Affects Versions: 4.1.3
>         Environment: Windows, JDK 1.8.0
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.4, 4.2.0
>
>
> Considering execute this command from ssh client:
> {code}
> client.bat -h localhost -u karaf "config:edit org.talend.esb.job.client.sts; config:property-set
sts.wsdl.location http://infrastructure:8040/services/SecurityTokenService/UT?wsdl; config:update"
> {code}
> It works like a charm on Karaf 4.1.1/4.1.2. but it failed with InvalidPathException on
Karaf 4.1.3
> {code}
> 2017-11-20T11:34:10,954 | ERROR | Thread-39        | ShellUtil                      
 | 42 - org.apache.karaf.shell.core - 4.1.3 | Exception caught while executing command
> java.nio.file.InvalidPathException: Illegal char <:> at index 4: http://infrastructure:8040/services/SecurityTokenService
> 	at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) [?:?]
> 	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) [?:?]
> 	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) [?:?]
> 	at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) [?:?]
> 	at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) [?:?]
> 	at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53) [?:?]
> 	at org.apache.felix.gogo.runtime.Expander.generateFileNames(Expander.java:595) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:131) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:73) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:58) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Closure.eval(Closure.java:370) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:434) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [42:org.apache.karaf.shell.core:4.1.3]
> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [42:org.apache.karaf.shell.core:4.1.3]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
> 	at java.lang.Thread.run(Thread.java:745) [?:?]
> {code}
> The same ERROR if put the commands above into a source script and execute "source ..."
command from ssh client.
> Another failed use case is:
> {code}
> client.bat -h localhost -u karaf "config:edit org.talend.eventlogging.listener.log;config:property-set
category.mapping.org.apache.cxf important-log(audit=true);config:update"
> Error executing command: no matches found: important-log(audit=true)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message