karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (KARAF-132) The user name for the main console session is always "karaf"
Date Mon, 03 Jan 2011 23:21:45 GMT

     [ https://issues.apache.org/jira/browse/KARAF-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Guillaume Nodet reopened KARAF-132:

Not sure what real value the current fix brings.
The idea was more to be able to have the default user configurable in a way that would allow
 connect to other karaf instances (like child instances managed by the admin shell) by having
a way to specify the default user, not really by using the system user name.

> The user name for the main console session is always "karaf"
> ------------------------------------------------------------
>                 Key: KARAF-132
>                 URL: https://issues.apache.org/jira/browse/KARAF-132
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>         Attachments: patchfile.txt
> See org.apache.karaf.shell.console.jline.ConsoleFactory#start
> {code}
>             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();
> {code}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message