Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-132

The user name for the main console session is always "karaf"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 4.0.0.M3
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      See org.apache.karaf.shell.console.jline.ConsoleFactory#start

                  CommandSession session = console.getSession();
                  session.put("USER", "karaf");
                  session.put("APPLICATION", System.getProperty("karaf.name", "root"));
                  session.put("LINES", Integer.toString(terminal.getTerminalHeight()));
                  session.put("COLUMNS", Integer.toString(terminal.getTerminalWidth()));
                  session.put(".jline.terminal", terminal);
                  new Thread(console, "Karaf Shell Console Thread").start();
      

        Attachments

        1. patchfile.txt
          0.9 kB
          Tracy Snell

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              gnt Guillaume Nodet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: