Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-473

Tab completing very long paths results in ArrayOutOfBoundsException

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 1.7
    • 1.5
    • main
    • None

      Tab completing very long paths results in an ArrayOutOfBoundsException being thrown.

      1. Similarly to AESH-466, create a directory like so:

      mkdir -p /tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy/
      

      2. Attempt to tab complete this directory

      3. Hit the following stacktrace:

      Select the installation path:  [/home/thauser/EAP-7.2.0] 
      /tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
      java.lang.ArrayIndexOutOfBoundsException: 901
      	at org.aesh.readline.Buffer.doActualInsert(Buffer.java:268)
      	at org.aesh.readline.Buffer.doInsert(Buffer.java:258)
      	at org.aesh.readline.Buffer.insert(Buffer.java:216)
      	at org.aesh.readline.Buffer.insert(Buffer.java:838)
      	at org.aesh.readline.AeshConsoleBuffer.writeString(AeshConsoleBuffer.java:149)
      	at org.aesh.readline.completion.CompletionHandler.displayCompletion(CompletionHandler.java:197)
      	at org.aesh.readline.completion.CompletionHandler.complete(CompletionHandler.java:113)
      	at org.aesh.readline.action.mappings.Complete.accept(Complete.java:62)
      	at org.aesh.readline.Readline$AeshInputProcessor.parse(Readline.java:245)
      	at org.aesh.readline.Readline$AeshInputProcessor.access$100(Readline.java:174)
      	at org.aesh.readline.Readline.readInput(Readline.java:95)
      	at org.aesh.readline.Readline.access$1000(Readline.java:57)
      	at org.aesh.readline.Readline$AeshInputProcessor.lambda$start$1(Readline.java:333)
      	at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:118)
      	at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:31)
      	at org.aesh.io.Decoder.write(Decoder.java:133)
      	at org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:212)
      	at org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:199)
      	at com.izforge.izpack.util.AeshReadlineConsole.readConsole(AeshReadlineConsole.java:85)
      	at com.izforge.izpack.util.AeshReadlineConsole.readFile(AeshReadlineConsole.java:57)
      	at com.izforge.izpack.panels.TargetPanelConsoleHelper.runConsole(TargetPanelConsoleHelper.java:98)
      	at com.izforge.izpack.installer.ConsoleInstaller.iterateAndPerformAction(ConsoleInstaller.java:289)
      	at com.izforge.izpack.installer.ConsoleInstaller.doInstall(ConsoleInstaller.java:645)
      	at com.izforge.izpack.installer.ConsoleInstaller.run(ConsoleInstaller.java:783)
      	at com.izforge.izpack.installer.Installer.main(Installer.java:179)
      

      It's possible that there's something I've done incorrectly in the FilenameCompletion code. If you need the source for that, let me know.

              spederse@redhat.com Stale Pedersen
              thauser_jira Thomas Hauser (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: