Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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:
java.io.EOFException: unexpected EOT looking for matching quote: '
The trace shows:
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