Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-608

Using ? as control character in .inputrc causes CLI to terminate immediately.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.CR4, 2.0.0.Alpha1
    • None
    • CLI
    • None

      • When using [wildfly-8.2.0.Final] When user has a '.inputrc' in the user home directory with the following content:
      # Control characters
      "\C-?":   backward-delete-char
      
      • The it fails with the the following Stack Trace:
        ./jboss-cli.sh 
        java.lang.RuntimeException: ERROR parsing ? keys to aesh. Check your inputrc.
        	at org.jboss.aesh.edit.mapper.KeyMapper.convertRandomControlKeys(KeyMapper.java:161)
        	at org.jboss.aesh.edit.mapper.KeyMapper.mapRandomKeys(KeyMapper.java:138)
        	at org.jboss.aesh.edit.mapper.KeyMapper.mapKeys(KeyMapper.java:108)
        	at org.jboss.aesh.edit.mapper.KeyMapper.mapQuoteKeys(KeyMapper.java:49)
        	at org.jboss.aesh.console.Config.parseInputrc(Config.java:127)
        	at org.jboss.aesh.console.Console.reset(Console.java:150)
        	at org.jboss.aesh.console.Console.<init>(Console.java:105)
        	at org.jboss.aesh.console.Console.<init>(Console.java:101)
        	at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:85)
        	at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:78)
        	at org.jboss.as.cli.impl.CommandContextImpl.initBasicConsole(CommandContextImpl.java:349)
        	at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:296)
        	at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:76)
        	at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:273)
        	at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:253)
        	at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:606)
        	at org.jboss.modules.Module.run(Module.java:312)
        	at org.jboss.modules.Main.main(Main.java:460)
        
      • Expectation is that CLI should not have terminated suddenly rather the exception should have been handled in a proper way.

              olubyans@redhat.com Alexey Loubyansky
              jaysensharma Jay SenSharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: