Project: springxd
Issue XD-1376: XD Shell crashes when the stream DSL has "!"
The XD shell crashes when the following command issued: stream create test --definition "http | filter --expression=!payload.contains('test') | log" It looks like the JLine ConsoleReader's expandEvents is set to true by default and this causes the issue: Exception in thread "Spring Shell" java.lang.IllegalArgumentException: !payload.contains('test') | log": event not found jline.console.ConsoleReader.expandEvents(ConsoleReader.java:734) jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:604) jline.console.ConsoleReader.accept(ConsoleReader.java:1912) jline.console.ConsoleReader.readLine(ConsoleReader.java:2537) jline.console.ConsoleReader.readLine(ConsoleReader.java:2162) jline.console.ConsoleReader.readLine(ConsoleReader.java:2150) org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:517) org.springframework.shell.core.JLineShell.run(JLineShell.java:178) java.lang.Thread.run(Thread.java:722)
Story points: 2