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-6794) Using single quote in double quote string argument command fails
Date Mon, 05 Oct 2020 13:28:00 GMT

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

Jean-Baptiste Onofré updated KARAF-6794:
----------------------------------------
    Fix Version/s:     (was: 4.2.10)
                   4.2.11

> Using single quote in double quote string argument command fails
> ----------------------------------------------------------------
>
>                 Key: KARAF-6794
>                 URL: https://issues.apache.org/jira/browse/KARAF-6794
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.11
>
>
> Due to the latest Gogo Runtime update, when using single quote in a double quoted string
fails.
> For instance, if the arguments is "John O'Deer", the following error occurs:
> {code:java}
> java.io.EOFException: unexpected EOT looking for matching quote: ' {code}
> The trace shows:
> {code:java}
> 07:44:50.104 ERROR [Karaf local console user karaf] Exception caught while executing
command
> java.io.EOFException: unexpected EOT looking for matching quote: '
>         at org.apache.felix.gogo.runtime.Closure.setLocation(Closure.java:138) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:173) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:149) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:179)
~[!/:4.2.9]
>         at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.doExecute(ConsoleSessionImpl.java:467)
[!/:4.2.9]
>         at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:407)
[!/:4.2.9]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]
> Caused by: org.apache.felix.gogo.runtime.EOFError: unexpected EOT looking for matching
quote: '
>         at org.apache.felix.gogo.runtime.BaseTokenizer.skipQuote(BaseTokenizer.java:159)
~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.doExpand(Expander.java:798) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:119) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:62) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.doExpand(Expander.java:739) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:119) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:72) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:57) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Closure.eval(Closure.java:399) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:463)
~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[!/:4.2.9]
>         at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_241]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:1.8.0_241]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:1.8.0_241]
>         ... 1 more {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message