Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #187301 +++ Launch a Telnet shell. Either (a) Type "exit" in the shell. The shell should get a grey background, and the "connected" indicator should disappear from its icons, but it remains. Or, (b) Press the "cancel shell" or "remove shell" button in either the remote commands view or the remote systems tree. Again, the shell should get a frey background and the "connected" indicator should disappear, but it remains. It looks like some event handling is missing in TelnetHostShell in reaction to dropping the Telnet input stream or output stream. At the very least, for (b) when the user manually cancels a shell it should be marked canceled by doing the proper event sending. It would be even better yet to respond to events when the Telnet streams go down (e.g. because the connection to the remote is lost, for instance due to typing "exit" in a shell. But I'm not sure if Apache commons net supports such callbacks.
*** Bug 186568 has been marked as a duplicate of this bug. ***
The fix is basically the same as bug 161838 comment 10. Update of "connected" state, decorators and actions is fixed through bug 197848. [194466] Fix shell terminated state when stream is closed TelnetHostShell.java 1.5