Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5493

InvalidPathException is thrown when execute config:property-set command from ssh client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.3
    • 4.1.4
    • karaf
    • None
    • Windows, JDK 1.8.0

    Description

      Considering execute this command from ssh client:

      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"
      

      It works like a charm on Karaf 4.1.1/4.1.2. but it failed with InvalidPathException on Karaf 4.1.3

      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) [?:?]
      

      The same ERROR if put the commands above into a source script and execute "source ..." command from ssh client.

      Another failed use case is:

      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)
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            xldai Xilai Dai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: